A role permission assignment shows a single permission and set of access rights for a role. It is an owned object of a role object. You create, update, and delete role permission assignment objects through the rolePermissionAssignments
array in the owning role object.
Roles are used in companies that have role-based permissions. Companies with user-based permissions do not use roles.
Returns a collection with a key, ID, and link for each role permission assignment. This operation is mostly for use in testing; use the query service to find role permission assignments that meet certain criteria and specify the properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "156434",
- "id": "156434",
- "href": "/objects/company-config/role-permission-assignment/156434"
}, - {
- "key": "156435",
- "id": "156435",
- "href": "/objects/company-config/role-permission-assignment/156435"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Returns detailed information for a specified role permission assignment.
key required | string System-assigned unique key for a role permission assignment. Example: 1748 |
OK
Bad Request
{- "ia::result": {
- "key": "1748",
- "id": "1748",
- "role": {
- "key": "528",
- "id": "::SYS::Multi Entity Shared-ROLE-FOR - EMP4-US",
- "href": "/objects/company-config/role/528"
}, - "permission": {
- "key": "3295",
- "id": "3295",
- "name": "coverLetters",
- "module": "company",
- "href": "/objects/company-config/permission/3295"
}, - "accessRights": [
- "list",
- "readonly",
- "add",
- "modify",
- "delete"
], - "audit": {
- "createdDateTime": "2024-02-15T11:39:04Z",
- "modifiedDateTime": "2024-02-15T11:39:04Z",
- "createdBy": "51",
- "modifiedBy": "51",
- "createdByUser": {
- "key": "51",
- "id": "Admin",
- "href": "/objects/company-config/user/51"
}, - "modifiedByUser": {
- "key": "51",
- "id": "Admin",
- "href": "/objects/company-config/user/51"
}
}, - "href": "/objects/company-config/role-permission-assignment/1748"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}