"Bad Gateway - 502" returned when invoking privilegedRoleAssignments API

Donovin DeCoste (ddecoste) 1 Reputation point
2021-08-09T13:32:22.433+00:00

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://learn.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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,236 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Diana Wanjuhi 1,376 Reputation points
    2021-09-02T11:44:06.577+00:00

    Hello @Donovin DeCoste (ddecoste) 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.

    0 comments No comments

Your answer

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