-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into enganga/usability-params-set-entrauserextension
- Loading branch information
Showing
57 changed files
with
285 additions
and
425 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,26 +34,29 @@ Add-EntraBetaGroupMember | |
|
||
The `Add-EntraBetaGroupMember` cmdlet adds a member to a group. Specify the `GroupId` and `RefObjectId` parameters to add a member to a group. | ||
|
||
`-GroupId` - specifies the unique identifier (Object ID) of the group to which you want to add a member. | ||
In delegated scenarios, the signed-in user needs a supported Microsoft Entra role or a custom role with the `microsoft.directory/groups/members/update` permission. The minimum roles required for this operation, excluding role-assignable groups, are: | ||
|
||
`-RefObjectId` - specifies the unique identifier (Object ID) of the member to be added to the group. | ||
- Group owners | ||
- Directory Writers | ||
- Groups Administrator | ||
- User Administrator | ||
|
||
## Examples | ||
|
||
### Example 1: Add a member to a group | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'GroupMember.ReadWrite.All' | ||
$params = @{ | ||
GroupId = 'dddddddd-2222-3333-5555-rrrrrrrrrrrr' | ||
RefObjectId = 'bbbbbbbb-1111-2222-3333-cccccccccccc' | ||
} | ||
Add-EntraBetaGroupMember @params | ||
$group = Get-EntraBetaGroup -Filter "DisplayName eq 'Contoso Marketing Group'" | ||
$user = Get-EntraBetaUser -UserId '[email protected]' | ||
Add-EntraBetaGroupMember -GroupId $group.Id -RefObjectId $user.Id | ||
``` | ||
|
||
This example demonstrates how to add a member to a group. | ||
|
||
- `-GroupId` - specifies the unique identifier (Object ID) of the group to which you want to add a member. | ||
- -RefObjectId` - specifies the unique identifier (Object ID) of the member to be added to the group. | ||
|
||
## Parameters | ||
|
||
### -GroupId | ||
|
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 |
---|---|---|
|
@@ -35,9 +35,12 @@ Add-EntraBetaGroupOwner | |
|
||
The `Add-EntraBetaGroupOwner` cmdlet adds an owner to a Microsoft Entra ID group. Specify the `GroupId` and `RefObjectId` parameters to add an owner to a group. | ||
|
||
`-GroupId` - specifies the unique identifier (Object ID) of the group to which you want to add an owner. | ||
In delegated scenarios, the signed-in user must have either a supported Microsoft Entra role or a custom role with the necessary permissions. The minimum roles required for this operation are: | ||
|
||
`-RefObjectId` - specifies the unique identifier (Object ID) of the owner to be added to the group (user or service principal). | ||
- Group owners | ||
- User Administrator | ||
- Directory Writers | ||
- Groups Administrator | ||
|
||
## Examples | ||
|
||
|
@@ -47,16 +50,14 @@ The `Add-EntraBetaGroupOwner` cmdlet adds an owner to a Microsoft Entra ID group | |
Connect-Entra -Scopes 'Group.ReadWrite.All' | ||
$group = Get-EntraBetaGroup -Filter "DisplayName eq 'HelpDesk Team Leaders'" | ||
$user = Get-EntraBetaUser -UserId '[email protected]' | ||
$params = @{ | ||
GroupId = $group.ObjectId | ||
RefObjectId = $user.ObjectId | ||
} | ||
Add-EntraBetaGroupOwner @params | ||
Add-EntraBetaGroupOwner -GroupId $group.Id -RefObjectId $user.Id | ||
``` | ||
|
||
This example demonstrates how to add an owner to a group. | ||
|
||
- `-GroupId` - specifies the unique identifier (Object ID) of the group to which you want to add an owner. | ||
- `-RefObjectId` - specifies the unique identifier (Object ID) of the owner to be added to the group. | ||
|
||
## Parameters | ||
|
||
### -GroupId | ||
|
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
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
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 |
---|---|---|
|
@@ -68,7 +68,8 @@ This example demonstrates how to retrieve the properties and relationships of al | |
|
||
```powershell | ||
Connect-Entra -Scopes 'Directory.Read.All' | ||
Get-EntraBetaGroupLifecyclePolicy -GroupLifecyclePolicyId 'ffffffff-5555-6666-7777-aaaaaaaaaaaa' | ||
$policy = Get-EntraBetaGroupLifecyclePolicy | Where-Object {$_.AlternateNotificationEmails -eq '[email protected]'} | ||
Get-EntraBetaGroupLifecyclePolicy -GroupLifecyclePolicyId $policy.Id | ||
``` | ||
|
||
```Output | ||
|
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
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
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 |
---|---|---|
|
@@ -52,23 +52,7 @@ In delegated scenarios with work or school accounts, the signed-in user must be | |
|
||
## Examples | ||
|
||
### Example 1: Retrieve the OAuth2 permission grants for a user | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'Directory.Read.All' | ||
Get-EntraBetaUserOAuth2PermissionGrant -UserId '[email protected]' | ||
``` | ||
|
||
```Output | ||
Id ClientId ConsentType ExpiryTime | ||
-- -------- ----------- ---------- | ||
HXFXwKLgoUC4rwbZbCDIdffW8XpadQNIoHik9aQxrVHR6StBYBRhQI7tzKID_LIV 00001111-aaaa-2222-bbbb-3333cccc4444 Principal 08-01-2024 10:0... | ||
9uBzRwC0s0CFCDQN6O4Ik_fW8XpadQNIoHik9aQxrVHR6StBYBRhQI7tzKID_LIV 11112222-bbbb-3333-cccc-4444dddd5555 Principal 13-01-2024 08:0... | ||
``` | ||
|
||
This example retrieves the OAuth2 permission grants for a user using the ObjectId parameter. Use the `Get-EntraBetaUser` cmdlet to obtain the `UserId` value. | ||
|
||
### Example 2: Retrieve the OAuth2 permission grants for a user using object ID parameter | ||
### Example 1: Retrieve the OAuth2 permission grants for a user using object ID parameter | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'Directory.Read.All' | ||
|
@@ -86,7 +70,7 @@ This example retrieves the OAuth2 permission grants for a user using object ID p | |
|
||
- `-UserId` parameter specifies the user ID. | ||
|
||
### Example 3: Retrieve the OAuth2 permission grants for a user using All parameter | ||
### Example 2: Retrieve the OAuth2 permission grants for a user using All parameter | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'Directory.Read.All' | ||
|
@@ -104,7 +88,7 @@ This example retrieves the OAuth2 permission grants for a user using All paramet | |
|
||
- `-UserId` parameter specifies the user ID. | ||
|
||
### Example 4: Retrieve top one OAuth2 permission grant | ||
### Example 3: Retrieve top one OAuth2 permission grant | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'Directory.Read.All' | ||
|
Oops, something went wrong.