question

DonovinDeCosteddecoste-5893 avatar image
0 Votes"
DonovinDeCosteddecoste-5893 asked DianaWanjuhi-1579 answered

"Bad Gateway - 502" returned when invoking privilegedRoleAssignments API

I am invoking a POST operation within the Graph API to create a privileged role assignment (https://graph.microsoft.com/beta/privilegedRoleAssignments). Using an account who is a Privileged Role Administrator.

Following documentation here
https://docs.microsoft.com/en-us/graph/api/privilegedroleassignment-post-privilegedroleassignments?view=graph-rest-beta&tabs=http

I am receiving a 503 Bad Request error when invoking the API

121696-image.png


microsoft-graph-security
image.png (115.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DianaWanjuhi-1579 avatar image
0 Votes"
DianaWanjuhi-1579 answered

Hello @DonovinDeCosteddecoste-5893 Thank you for reaching out. Please note that the create Privileged Role Assignment version of the Privileged Identity Management (PIM) API for Azure Active Directory (Azure AD) roles is deprecated and stopped returning data on May 31, 2021. Please use the role management APIs instead.



128645-pim-documentation-change.png



Let me know whether this helps and if you have further questions,

Diana.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.