plta-permissions-api-cbz

Attach a user to a role

Attaches a user to a role, granting them all of its access and admin grants. The caller needs manageRoles over the role’s scope. Idempotent - attaching a user already in the role is a no-op.

put
https://dev.api.sanofi.com/permissions/roles/{roleName}/members/{userId}

Path Parameters

roleNamestringrequired

The name of the role

userIdstringrequired

The id of the user, as stored in IDP. For Sanofi internal user, it would be the oid (Unique identifier of the user in Azure AD)

Response

No Content

put/roles/{roleName}/members/{userId}