0

The REST API which is available to list role assignments of a resource group by MS results with few properties in which neither DisplayName nor RoleDefinitionName specified. But all the expected details could be fetched using PowerShell as stated in this link.

Need to fetch the same details via an api call. Is there any possible way or REST API currently available to fetch details of all the Owners of a particular resource group in Azure?

1 Answers1

-1

You can use MS graph api to list the owners of resource groups:

GET https://graph.microsoft.com/v1.0/groups/{id}/owners
Carl Zhao
  • 8,543
  • 2
  • 11
  • 19
  • Thanks for the answer. Tried this using graph api earlier but was getting response with error as `"message": "Resource '{id}' does not exist or one of its queried reference-property objects are not present."`. The {id} used to query was subscription id of the resource group. Could you please let me know if it's the right way to query? – mmarpitha Nov 11 '20 at 11:09
  • this is for O365 groups, not Azure Resource Groups. – Derek Gusoff Nov 11 '20 at 13:34
  • @DerekGusoff, yes thanks. It's not for Azure RG's! Think there is no api available to get the details for resource group owners. – mmarpitha Nov 12 '20 at 04:12