Users: via powershell or via REST
- see "List role assignments at a specific scope"
AD Administrator: via powershell- see "Provision an Azure AD administrator for Azure SQL Server by using PowerShell". There seems to be a reference that would indicate an intent to expose this via the REST API, but it seems to be missing from the documentation. Let me see what we can do about that.
Edit: The powershell command that would list all Role assignments for a specific SQL server would be:
Get-AzureRmRoleAssignment -ResourceGroupName <your resource group name> -ResourceType Microsoft.Sql/servers -ResourceName <your server name> -IncludeClassicAdministrators
A similar approach is possible with the REST commands.
Important to note: This only enumerates the Azure permission set, and no RBAC on the SQL Server level is enumerated here.
atScope()> ?what is its parameter?
– Nadav Aug 29 '16 at 21:41