Permissions enable users to perform a particular function or task within a specific area of the product. For example, a user might have permission within the General Ledger to view financial reports but not to create, edit, or delete them.
A permission specifies a module, such as accountsPayable
, a specific permission name, such as vendors
, and the allowed access rights for that permission, such as list
, view
, add
, and edit
.
You use role-permission-assignment objects to assign permissions to roles.
Returns a collection with a key, ID, and link for each permission. This operation is mostly for use in testing; use the query service to find permissions that meet certain criteria and specify the properties that are returned.
Subscription | Administration |
---|---|
Configuration | Role-based |
User type | Business user with admin privileges |
Permissions | Users - List, View, Permissions |
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "1",
- "href": "/objects/company-config/permission/1"
}, - {
- "key": "2",
- "id": "2",
- "href": "/objects/company-config/permission/2"
}
], - "ia::meta": {
- "totalCount": 2,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Returns detailed information for a specified permission.
Subscription | Administration |
---|---|
Configuration | Role-based |
User type | Business user with admin privileges |
Permissions | Users - List, View, Permissions |
key required | string System-assigned unique key for the permission. Example: 102 |
OK
Bad Request
{- "ia::result": {
- "key": "1",
- "id": "1",
- "module": "myAccounting",
- "name": "switchToMyAccounting",
- "permissionGroup": "activitiesAndLists",
- "allowedAccessRights": [
- "list"
], - "href": "/objects/company-config/permission/1"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Use the query service to find permissions that meet certain criteria and to specify the properties that are returned.
OK
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}