-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Resources and Cmdlet documentation pages
- Loading branch information
1 parent
8abd8c9
commit ba92563
Showing
2 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
| **Country** | Write | String | The Country name of the user | | | ||
| **Department** | Write | String | The Department name of the user | | | ||
| **Fax** | Write | String | The Fax Number of the user | | | ||
| **MemberOf** | Write | StringArray[] | The Groups that the user is a direct member of | | | ||
| **MobilePhone** | Write | String | The Mobile Phone Number of the user | | | ||
| **Office** | Write | String | The Office Name of the user | | | ||
| **PasswordNeverExpires** | Write | Boolean | Specifies whether the user password expires periodically. Default value is false | | | ||
|
@@ -37,7 +38,9 @@ | |
|
||
## Description | ||
|
||
This resource allows users to create Azure AD Users and assign them licenses. | ||
This resource allows users to create Azure AD Users and assign them licenses, roles and/or groups. | ||
|
||
If using with AADGroup, be aware that if AADUser->MemberOf is being specified and the referenced group is configured with AADGroup->Member then a conflict may arise if the two don't match. It is usually best to choose only one of them. See AADGroup | ||
|
||
## Permissions | ||
|
||
|
@@ -49,11 +52,11 @@ To authenticate with the Microsoft Graph API, this resource required the followi | |
|
||
- **Read** | ||
|
||
- RoleManagement.Read.Directory, User.Read.All | ||
- RoleManagement.Read.Directory, User.Read.All, Group.Read.All, GroupMember.Read.All | ||
|
||
- **Update** | ||
|
||
- Organization.Read.All, RoleManagement.Read.Directory, RoleManagement.ReadWrite.Directory, User.Read.All, User.ReadWrite.All | ||
- Organization.Read.All, RoleManagement.Read.Directory, RoleManagement.ReadWrite.Directory, User.Read.All, Group.Read.All, GroupMember.Read.All, User.ReadWrite.All, Group.ReadWrite.All, GroupMember.ReadWrite.All | ||
|
||
#### Application permissions | ||
|
||
|
@@ -102,3 +105,38 @@ Configuration Example | |
} | ||
``` | ||
|
||
### Example 2 | ||
|
||
This example is used to test new resources and showcase the usage of new resources being worked on. | ||
It is not meant to use as a production baseline. | ||
|
||
```powershell | ||
Configuration Example | ||
{ | ||
param( | ||
[Parameter(Mandatory = $true)] | ||
[PSCredential] | ||
$credsGlobalAdmin | ||
) | ||
Import-DscResource -ModuleName Microsoft365DSC | ||
node localhost | ||
{ | ||
AADUser 'ConfigureJohnSMith' | ||
{ | ||
UserPrincipalName = "[email protected]" | ||
FirstName = "John" | ||
LastName = "Smith" | ||
DisplayName = "John J. Smith" | ||
City = "Gatineau" | ||
Country = "Canada" | ||
Office = "Ottawa - Queen" | ||
MemberOf = @('Group-M365-Standard-License', 'Group-PowerBI-Pro-License') | ||
UsageLocation = "US" | ||
Ensure = "Present" | ||
Credential = $credsGlobalAdmin | ||
} | ||
} | ||
} | ||
``` | ||
|