Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

New-EntraBetaAttributeSet

Adds a new attribute set.

Syntax

Default (Default)

New-EntraBetaAttributeSet

 [-Description <String>]
 [-MaxAttributesPerSet <Int32>]
 [-AttributeSetId <String>]
 [<CommonParameters>]

Description

Adds a new Microsoft Entra ID attribute set object.

The signed-in user must be assigned one of the following directory roles:

  • Attribute Definition Administrator

Examples

Example 1: Add a single attribute set

Connect-Entra -Scopes 'CustomSecAttributeDefinition.ReadWrite.All'
New-EntraBetaAttributeSet -AttributeSetId 'ContosoSet' -Description 'Contoso Set' -MaxAttributesPerSet 15
Id Description MaxAttributesPerSet
-- ----------- -------------------
Testing Attributes for engineering team 10

This example demonstrates hoe to add a single attribute set.

  • -AttributeSetId parameter specifies the name of the attribute set.
  • -Description parameter specifies the description for the attribute set.
  • -MaxAttributesPerSet parameter specifies the maximum number of custom security attributes.

Parameters

-AttributeSetId

Name of the attribute set. Unique identifier for the attribute set within a tenant, up to 32 Unicode characters. It can't contain spaces or special characters, is case sensitive, and can't be changed later. Required.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Id

Parameter sets

-Description

Description of the attribute set, up to 128 characters long, including Unicode characters. This description can be changed later.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-MaxAttributesPerSet

Maximum number of custom security attributes that can be defined in this attribute set. The default value is null. If not specified, the administrator can add up to 500 active attributes per tenant. This setting can be changed later.

Parameter properties

Type:System.Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object

Related Links


Feedback

Was this page helpful?