plta-permissions-api-cbz

Assign an access right to a user

Assign an access right (a combination of action hierarchy and resource) to a user

post
https://dev.api.sanofi.com/permissions/accessRights

Body

application/json

AccessRight

the combinaison of a profile and a resource (which can be a top resource in a hierarchy or a base resource).

actionNamestringrequired

Name of the action.

Example:read_narrative, write_compound

resourceNamestringrequired

Name of the resource.

Example:compound_1245

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

application/json

Created

AccessRight

the combinaison of a profile and a resource (which can be a top resource in a hierarchy or a base resource).

accessRightIdstring(uuid)read-only

the unique identifier of the access right, mostly for deletion purpose.

actionNamestringrequired

Name of the action.

Example:read_narrative, write_compound

resourceNamestringrequired

Name of the resource.

Example:compound_1245

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)

post/accessRights

Body

{ "actionName": "read_narrative", "resourceName": "compound_1245", "userId": "userId" }
 
application/json