Skip to content

Instantly share code, notes, and snippets.

@alkampfergit
Created February 13, 2023 13:28
Show Gist options
  • Save alkampfergit/535e19f1298f68a97855b905548a7088 to your computer and use it in GitHub Desktop.
Save alkampfergit/535e19f1298f68a97855b905548a7088 to your computer and use it in GitHub Desktop.
Example in Get Get-ManagementRole -Cmdlet New-ServicePrincipal
Get-ManagementRole -Cmdlet New-ServicePrincipal  pwsh 
RoleEntries : {(Microsoft.Exchange.Management.PowerShell.E2010) Get-BookingMailbox
-RecipientTypeDetails, (Microsoft.Exchange.Management.PowerShell.E2010)
Test-MailboxAssistant -AssistantName -Process,
(Microsoft.Exchange.Management.PowerShell.E2010) Test-ServicePrincipalAuthorization
-Debug -ErrorAction -ErrorVariable -Identity -Organization -OutBuffer -OutVariable
-Resource -Verbose -WarningAction -WarningVariable,
(Microsoft.Exchange.Management.PowerShell.E2010) Get-ServicePrincipal -Debug
-ErrorAction -ErrorVariable -Identity -Organization -OutBuffer -OutVariable -Verbose
-WarningAction -WarningVariable…}
RoleType : RoleManagement
ImplicitRecipientReadScope : Organization
ImplicitRecipientWriteScope : Organization
ImplicitConfigReadScope : OrganizationConfig
ImplicitConfigWriteScope : OrganizationConfig
IsRootRole : True
IsEndUserRole : False
MailboxPlanIndex :
Description : This role enables administrators to manage management role groups; role assignment
policies and management roles; and role entries, assignments, and scopes in an
organization.
Users assigned this role can override the role group managed by property, configure any
role group, and add or remove members to or from any role group.
Parent :
RoleState : Usable
IsDeprecated : False
IsServicePrincipalRole : False
AllowEmptyRole : False
AdminDisplayName :
ExchangeVersion : 0.12 (14.0.451.0)
Name : Role Management
DistinguishedName : CN=Role Management,CN=Roles,CN=RBAC,CN=Configuration,CN=xxxxx.onmicrosoft.com,CN=Configura
tionUnits,DC=EURPR03A002,DC=prod,DC=outlook,DC=com
Identity : Role Management
ObjectCategory : xxxxxxxx.prod.outlook.com/Configuration/Schema/ms-Exch-Role
ObjectClass : {top, msExchRole}
WhenChanged : 11/27/2022 9:26:32 AM
WhenCreated : 9/29/2016 9:37:57 PM
WhenChangedUTC : 11/27/2022 8:26:32 AM
WhenCreatedUTC : 9/29/2016 7:37:57 PM
ExchangeObjectId : xxxxxx-xxxx-xxxx-xxxxxx-xxxxxxxxxx
OrganizationalUnitRoot : xxxx.onmicrosoft.com
OrganizationId : xxxxxxxxx.prod.outlook.com/Microsoft Exchange Hosted
Organizations/xxxx.onmicrosoft.com -
xxxxxxxxx.prod.outlook.com/ConfigurationUnits/xxx.onmicrosoft.com/Configuration
Id : Role Management
Guid : xxxxxx-xxxx-xxxx-xxxxxx-xxxxxxxxxx
OriginatingServer : xxxxxxxxxxxxxxxxxx.EURPR03A002.prod.outlook.com
IsValid : True
ObjectState : Unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment