Enable-EntraDirectoryRole
Activates an existing directory role in Microsoft Entra ID.
Syntax
Default (Default)
Enable-EntraDirectoryRole
[-RoleTemplateId <String>]
[<CommonParameters>]
Description
The Enable-EntraDirectoryRole
cmdlet activates an existing directory role in Microsoft Entra ID.
The Company Administrators and the default user directory roles (User, Guest User, and Restricted Guest User) are activated by default. To access and assign members to other directory roles, you must first activate them using their corresponding directory role template ID.
In delegated scenarios, the signed-in user must have either a supported Microsoft Entra role or a custom role with the necessary permissions. The minimum roles required for this operation are:
- Privileged Role Administrator
Parameters
-RoleTemplateId
The ID of the Role template to enable.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
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.
Notes
- For additional details see Activate directoryRole.