Set-AzureADMSCustomSecurityAttributeDefinition

Updates an existing custom security attribute definition.

Syntax

Set-AzureADMSCustomSecurityAttributeDefinition
   -Id <String>
   [-Description <String>]
   [-Status <String>]
   [-UsePreDefinedValuesOnly <Boolean>]
   [<CommonParameters>]

Description

Updates an Azure Active Directory (Azure AD) custom security attribute definition object identified by ID.

Examples

Example 1

Set-AzureADMSCustomSecurityAttributeDefinition -Id "Engineering_ProjectDate" -Description "Target completion date (YYYY/MM/DD)"

Update a custom security attribute definition.

  • Attribute set: Engineering
  • Attribute: ProjectDate

Example 2

Set-AzureADMSCustomSecurityAttributeDefinition -Id Engineering_Project -Status "Deprecated"

Deactivate a custom security attribute definition.

  • Attribute set: Engineering
  • Attribute: Project

Parameters

-Description

Description of the custom security attribute definition.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Id

The unique identifier of a custom security attribute definition in Azure AD.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Status

Specifies whether the custom security attribute is active or deactivated. Acceptable values are 'Available' and 'Deprecated'.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-UsePreDefinedValuesOnly

Indicates whether only predefined values can be assigned to the custom security attribute.

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

Outputs

Object