Provides access to the roles that are assigned to users in the context of a Hyperproof object.
Role Assignments API (1.0)
The user's role kind on an object. Manager has full administrative permissions. Contributor has full edit permissions. Viewer has read-only access to the object and its details. Auditor has read-only access specifically for compliance review purposes.
The unique identifier of the user or group to assign the role to. Must be an active user identifier or group identifier that matches the principalType.
The type of the object.
The unique identifier of the target object to assign the role on
The type of the object.
- Mock serverhttps://developer.hyperproof.app/_mock/hyperproof-api/roleassignments/roleassignments.openapi
- Hyperproof UShttps://api.hyperproof.app/v1/roleassignments
- Hyperproof EUhttps://api.hyperproof.eu/v1/roleassignments
- Hyperproof Govhttps://api.hyperproofgov.app/v1/roleassignments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.hyperproof.app/_mock/hyperproof-api/roleassignments/roleassignments.openapi/ \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"roleKind": "manager",
"principalId": "456e7890-e89b-12d3-a456-426614174000",
"principalType": "user",
"targetObjectId": "321e0987-e89b-12d3-a456-426614174000",
"targetObjectType": "control",
"message": "Adding you as control manager"
}'Role assignment created successfully
The unique identifier for the role assignment
The unique identifier of the role being assigned
The user's role kind on an object. Manager has full administrative permissions. Contributor has full edit permissions. Viewer has read-only access to the object and its details. Auditor has read-only access specifically for compliance review purposes.
The unique identifier of the user being assigned the role
The type of the object.
The unique identifier of the organization of the principal user
The unique identifier of the object the role is assigned on
The type of the object.
The unique identifier of the organization of the target object
The unique identifier of the source object if the role assignment on the target object is inherited
The type of the object.
The unique identifier of the group role assignment if inherited from group
The unique identifier of the user who created the role assignment
The date the role assignment was created (ISO-8601 format)
The unique identifier of the user who last updated the role assignment
{ "id": "123e4567-e89b-12d3-a456-426614174000", "roleId": "987e6543-e21b-12d3-a456-426614174000", "roleKind": "contributor", "principalId": "456e7890-e89b-12d3-a456-426614174000", "principalType": "user", "principalOrgId": "789e0123-e89b-12d3-a456-426614174000", "targetObjectId": "321e0987-e89b-12d3-a456-426614174000", "targetObjectType": "control", "targetOrgId": "789e0123-e89b-12d3-a456-426614174000", "sourceObjectId": "555e6666-e89b-12d3-a456-426614174000", "sourceObjectType": "Program", "groupId": null, "groupName": null, "groupRoleAssignmentId": null, "createdBy": "111e2222-e89b-12d3-a456-426614174000", "createdOn": "2024-01-15T10:30:00Z", "updatedBy": "111e2222-e89b-12d3-a456-426614174000", "updatedOn": "2024-01-15T10:30:00Z" }
The type of the object.
The list of principal user identifiers to filter role assignments by
The list of unique identifiers for role assignments to return
Flag indicating whether to exclude returning inherited role assignments
- Mock serverhttps://developer.hyperproof.app/_mock/hyperproof-api/roleassignments/roleassignments.openapi/filter
- Hyperproof UShttps://api.hyperproof.app/v1/roleassignments/filter
- Hyperproof EUhttps://api.hyperproof.eu/v1/roleassignments/filter
- Hyperproof Govhttps://api.hyperproofgov.app/v1/roleassignments/filter
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.hyperproof.app/_mock/hyperproof-api/roleassignments/roleassignments.openapi/filter \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"objectType": "control",
"userIds": [
"456e7890-e89b-12d3-a456-426614174000"
],
"directAssignmentsOnly": true
}'Successful response
The unique identifier for the role assignment
The unique identifier of the role being assigned
The user's role kind on an object. Manager has full administrative permissions. Contributor has full edit permissions. Viewer has read-only access to the object and its details. Auditor has read-only access specifically for compliance review purposes.
The unique identifier of the user being assigned the role
The type of the object.
The unique identifier of the organization of the principal user
The unique identifier of the object the role is assigned on
The type of the object.
The unique identifier of the organization of the target object
The unique identifier of the source object if the role assignment on the target object is inherited
The type of the object.
The unique identifier of the group role assignment if inherited from group
The unique identifier of the user who created the role assignment
The date the role assignment was created (ISO-8601 format)
The unique identifier of the user who last updated the role assignment
The date the role assignment was updated (ISO-8601 format)
[ { "id": "123e4567-e89b-12d3-a456-426614174000", "roleId": "987e6543-e21b-12d3-a456-426614174000", "roleKind": "contributor", "principalId": "456e7890-e89b-12d3-a456-426614174000", "principalType": "user", "principalOrgId": "789e0123-e89b-12d3-a456-426614174000", "targetObjectId": "321e0987-e89b-12d3-a456-426614174000", "targetObjectType": "control", "targetOrgId": "789e0123-e89b-12d3-a456-426614174000", "sourceObjectId": "555e6666-e89b-12d3-a456-426614174000", "sourceObjectType": "Program", "groupId": null, "groupName": null, "groupRoleAssignmentId": null, "createdBy": "111e2222-e89b-12d3-a456-426614174000", "createdOn": "2024-01-15T10:30:00Z", "updatedBy": "111e2222-e89b-12d3-a456-426614174000", "updatedOn": "2024-01-15T10:30:00Z" } ]
The user's role kind on an object. Manager has full administrative permissions. Contributor has full edit permissions. Viewer has read-only access to the object and its details. Auditor has read-only access specifically for compliance review purposes.
- Mock serverhttps://developer.hyperproof.app/_mock/hyperproof-api/roleassignments/roleassignments.openapi/{id}
- Hyperproof UShttps://api.hyperproof.app/v1/roleassignments/{id}
- Hyperproof EUhttps://api.hyperproof.eu/v1/roleassignments/{id}
- Hyperproof Govhttps://api.hyperproofgov.app/v1/roleassignments/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://developer.hyperproof.app/_mock/hyperproof-api/roleassignments/roleassignments.openapi/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"roleKind": "contributor"
}'Role assignment updated successfully
The unique identifier for the role assignment
The unique identifier of the role being assigned
The user's role kind on an object. Manager has full administrative permissions. Contributor has full edit permissions. Viewer has read-only access to the object and its details. Auditor has read-only access specifically for compliance review purposes.
The unique identifier of the user being assigned the role
The type of the object.
The unique identifier of the organization of the principal user
The unique identifier of the object the role is assigned on
The type of the object.
The unique identifier of the organization of the target object
The unique identifier of the source object if the role assignment on the target object is inherited
The type of the object.
The unique identifier of the group role assignment if inherited from group
The unique identifier of the user who created the role assignment
The date the role assignment was created (ISO-8601 format)
The unique identifier of the user who last updated the role assignment
{ "id": "123e4567-e89b-12d3-a456-426614174000", "roleId": "987e6543-e21b-12d3-a456-426614174000", "roleKind": "contributor", "principalId": "456e7890-e89b-12d3-a456-426614174000", "principalType": "user", "principalOrgId": "789e0123-e89b-12d3-a456-426614174000", "targetObjectId": "321e0987-e89b-12d3-a456-426614174000", "targetObjectType": "control", "targetOrgId": "789e0123-e89b-12d3-a456-426614174000", "sourceObjectId": "555e6666-e89b-12d3-a456-426614174000", "sourceObjectType": "Program", "groupId": null, "groupName": null, "groupRoleAssignmentId": null, "createdBy": "111e2222-e89b-12d3-a456-426614174000", "createdOn": "2024-01-15T10:30:00Z", "updatedBy": "111e2222-e89b-12d3-a456-426614174000", "updatedOn": "2024-01-15T10:30:00Z" }
- Mock serverhttps://developer.hyperproof.app/_mock/hyperproof-api/roleassignments/roleassignments.openapi/{id}
- Hyperproof UShttps://api.hyperproof.app/v1/roleassignments/{id}
- Hyperproof EUhttps://api.hyperproof.eu/v1/roleassignments/{id}
- Hyperproof Govhttps://api.hyperproofgov.app/v1/roleassignments/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://developer.hyperproof.app/_mock/hyperproof-api/roleassignments/roleassignments.openapi/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'