Where is microsoft.directory/users/create parameter in custom role?

Gregor Anton Grinč 171 Reputation points
2023-08-23T13:17:31.0433333+00:00

Hello,

I have created a custom role in the past and now I would like to add the capability to create new users in AAD to this role. I checked the User Administrator (predefined) role in AAD and I found this permission: 'microsoft.directory/users/create' which I assume is responsible for the above-mentioned capability.

However, no matter what I do I can not find this permission when I try to edit a custom role. Where should I look for this? Is there anything I must enable for example to assign this permission to my custom role?

Thank you very much

Gregor

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author
Vasil Michev 127.5K Reputation points MVP Volunteer Moderator
2023-08-23T16:10:35.4533333+00:00

There is no support for delegating the microsoft.directory/users/create permission currently. Only built-in roles can include it. You can refer to the official documentation for list of all supported permissions for custom roles.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Joshua Bines 0 Reputation points
    2026-07-25T11:05:55.4933333+00:00

    It's not in the custom role list nor via the UI but this does work.

    Connect-MgGraph -Scopes RoleManagement.ReadWrite.Directory
    
    $params = @{
    
    displayName = "User Creation Administrator"
    
    description = "Can create users"
    
    isEnabled = $true
    
    rolePermissions = @(
    
        @{
    
            allowedResourceActions = @(
    
                "microsoft.directory/users/create"
    
            )
    
        }
    
    )
    
    }
    
    New-MgRoleManagementDirectoryRoleDefinition -BodyParameter $params
    

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.