Skip to content

Commit

Permalink
Added examples for Get-MtRoleMember
Browse files Browse the repository at this point in the history
  • Loading branch information
merill committed Jul 13, 2024
1 parent ad11c17 commit 422456e
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion powershell/public/Get-MtRoleMember.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,33 @@
.Description
The role can be either active or eligible, defaults to getting members that are both active and eligible.
.Example
Get-MtRoleMember -Role GlobalAdministrator
Returns all the Global administrators and includes both Eligible and Active members.
.Example
Get-MtRoleMember -Role GlobalAdministrator -MemberStatus Active
Returns all the Global administrators that are currently active and excludes those that are eligible but not yet active.
.Example
Get-MtRoleMember -Role GlobalAdministrator -MemberStatus Active
Returns all the Global administrators that are currently active and excludes those that are eligible but not yet active.
.EXAMPLE
Get-MtRoleMember -Role GlobalAdministrator,PrivilegedRoleAdministrator
Returns all the Global administrators and Privileged Role administrators and includes both Eligible and Active members.
.Example
Get-MtRoleMember -RoleId "00000000-0000-0000-0000-000000000000"
Returns all the members of the role with the specified RoleId and includes both Eligible and Active members.
.Example
Get-MtRoleMember -RoleId "00000000-0000-0000-0000-000000000000" -RoleStatus Active
Get-MtRoleMember -RoleId "00000000-0000-0000-0000-000000000000" -MemberStatus Active
Returns all the currently active members of the role with the specified RoleId.
Expand Down

0 comments on commit 422456e

Please sign in to comment.