Get-EntraDirectoryRoleTemplate
ディレクトリ ロール テンプレートを取得します。
構文
Default (既定)
Get-EntraDirectoryRoleTemplate
[-Property <String[]>]
[<CommonParameters>]
説明
Get-EntraDirectoryRoleTemplate コマンドレットは、Microsoft Entra IDのディレクトリ ロール テンプレートを取得します。
委任されたシナリオでは、サインインしているユーザーには、サポートされているMicrosoft Entraロールまたは必要なアクセス許可を持つカスタム ロールが必要です。 この操作に必要な最小ロールは次のとおりです。
- グローバルリーダー
例
例 1: ロール テンプレートを取得する
Connect-Entra -Scopes 'RoleManagement.Read.Directory'
Get-EntraDirectoryRoleTemplate
DeletedDateTime Id Description
--------------- -- -----------
62e90394-69f5-4237-9190-012177145e10 Can manage all aspects of Microsoft Entra ID and Microsoft services that use Microsoft Entra identities.
10dae51f-b6af-4016-8d66-8c2a99b929b3 Default role for guest users. Can read a limited set of directory information.
2af84b1e-32c8-42b7-82bc-daa82404023b Default role for guest users with restricted access. Can read a limited set of directory information.
95e79109-95c0-4d8e-aee3-d01accf2d47b Can invite guest users independent of the 'members can invite guests' setting.
fe930be7-5e62-47db-91af-98c3a49a38b1 Can manage all aspects of users and groups, including resetting passwords for limited admins.
この例では、Microsoft Entra IDでロール テンプレートを取得します。
例 2: 特定のロール テンプレートを取得する
Connect-Entra -Scopes 'RoleManagement.Read.Directory'
Get-EntraDirectoryRoleTemplate | Where-Object {$_.DisplayName -eq 'Helpdesk Administrator'}
DeletedDateTime Id Description DisplayName
--------------- -- ----------- -----------
729827e3-9c14-49f7-bb1b-9608f156bbb8 Can reset passwords for non-administrators and Helpdesk Administrators. Helpdesk Administrator
この例では、ヘルプデスク ロール テンプレートを取得します。
パラメーター
-Property
返されるプロパティを指定します。
パラメーターのプロパティ
| 型: | System.String[] |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
| Aliases: | Select |
パラメーター セット
(All)
| 配置: | Named |
| 必須: | False |
| パイプラインからの値: | False |
| プロパティ名別のパイプラインからの値: | False |
| 残りの引数からの値: | False |
CommonParameters
このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。