Get-EntraBetaCustomSecurityAttributeDefinition
カスタム セキュリティ属性定義の一覧を取得します。
構文
GetQuery (既定)
Get-EntraBetaCustomSecurityAttributeDefinition
[-Property <String[]>]
[<CommonParameters>]
GetById
Get-EntraBetaCustomSecurityAttributeDefinition
-Id <String>
[-Property <String[]>]
[<CommonParameters>]
説明
カスタム セキュリティ属性定義Microsoft Entra ID一覧を取得します。
Idパラメーターを指定して、カスタム セキュリティ属性定義の一覧を取得します。
職場または学校アカウントを使用する委任されたシナリオでは、サインインしているユーザーに、サポートされているMicrosoft Entraロールまたは必要なアクセス許可を持つカスタム ロールを割り当てる必要があります。 この操作では、次の特権ロールがサポートされています。
- 属性アサインメントリーダー
- 属性定義ビューア
- 属性割り当て管理者
- 属性定義管理者
例
例 1: すべてのカスタム セキュリティ属性定義の一覧を取得する
Connect-Entra -Scopes 'CustomSecAttributeDefinition.Read.All', 'CustomSecAttributeDefinition.ReadWrite.All'
Get-EntraBetaCustomSecurityAttributeDefinition
Id AttributeSet Description IsCollection IsSearchable Name Status Type UsePreDefinedValuesOnly
-- ------------ ----------- ------------ ------------ ---- ------ ---- -----------------------
Engineering_newvalue Engineering New Eng Value True True NewValue Available String False
Engineering_ProjectDate Engineering Target completion date False True ProjectDate Available String False
この例では、すべてのカスタム セキュリティ属性定義が返されます。
例 2: 特定のカスタム セキュリティ属性定義を取得する
Connect-Entra -Scopes 'CustomSecAttributeDefinition.Read.All', 'CustomSecAttributeDefinition.ReadWrite.All'
$attributeDefinition = Get-EntraBetaCustomSecurityAttributeDefinition | Where-Object {$_.Name -eq 'Engineering'}
Get-EntraBetaCustomSecurityAttributeDefinition -Id $attributeDefinition.Id
Id AttributeSet Description IsCollection IsSearchable Name Status Type UsePreDefinedValuesOnly
-- ------------ ----------- ------------ ------------ ---- ------ ---- -----------------------
Engineering_ProjectDate Engineering Target completion date False True ProjectDate Available String False
この例では、特定のカスタム セキュリティ属性定義を返します。
-
Idパラメーターは、カスタム セキュリティ属性定義オブジェクト ID を指定します。
パラメーター
-Id
Microsoft Entra IDカスタム セキュリティ属性定義オブジェクトの一意識別子。
パラメーターのプロパティ
| 型: | System.String |
| 規定値: | None |
| ワイルドカードのサポート: | False |
| DontShow: | False |
パラメーター セット
GetById
| 配置: | Named |
| 必須: | True |
| パイプラインからの値: | True |
| プロパティ名別のパイプラインからの値: | True |
| 残りの引数からの値: | False |
-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を参照してください。