1
votes

I have an multi-tenant web application for different Azure accounts. I want to add a new custom directory role via PowerShell or Graph API so that I can automate things. I've walked through the reference for the Graph API but there was no any way to do this.

https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/api-catalog#directory-role-operations

It is possible with PowerShell?

I also want create a new Azure Active Directory programmatically, if possible.

1
If there are features you'd like which are missing, remember you can always request/vote for them at feedback.azure.com. (For example, there's already a request for custom roles, you can add your vote.) - Philippe Signoret

1 Answers

1
votes

Custom directory roles are not yet supported in Azure AD, only built-in roles.

Programmatically creating a new Azure AD directory is not supported.