Boomi Platform API Reference (1.0.0) - Role
The Role object represents a role assignable to users to control access to functionality. The Role object is exposed to enable interaction with an account’s custom roles.
Note: Any role (including custom roles) created in an internal account is considered a default Boomi role and cannot be deleted, resulting in the following error message:
{
"@type": "Error",
"message": "Cannot modify default Boomi roles"
}
Note: Your account must have the Advanced User Security feature enabled to query for custom roles and create, update, or delete custom roles. If you do not enable this feature, you can only query for default roles.
Required Privileges
Read and Write access
- API — Use the Boomi Platform API to access account data.
- ACCOUNT_ADMIN — Account configuration and administration.
Creates a Role object
Creates a Role object based on the supplied values.
Authorizations:
Request Body schema: optional
| Description | string Description of the role |
object (Privileges) One or more privileges assigned to the role. | |
| accountId | string The account ID under which the role exists. |
| id | string The ID of the role. |
| name | string The name of the role. |
| parentId | string The ID of the role from which this role inherits privileges. |
Responses
Response Schema:
| Description | string Description of the role |
object (Privileges) One or more privileges assigned to the role. | |
| accountId | string The account ID under which the role exists. |
| id | string The ID of the role. |
| name | string The name of the role. |
| parentId | string The ID of the role from which this role inherits privileges. |
Request samples
- Payload
{- "Description": "This is a custom role added",
- "Privileges": {
- "Privilege": [
- {
- "name": "API"
}, - {
- "name": "EXECUTE"
}, - {
- "name": "BUILD"
}
]
}, - "accountId": "accountId-12345",
- "name": "myRole",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69"
}Response samples
- 200
- 403
- 410
- 503
{- "@type": "Role",
- "Description": "Live and direct via API!",
- "Privileges": {
- "@type": "Privileges",
- "Privilege": [
- {
- "@type": "",
- "name": "EMBED"
}, - {
- "@type": "",
- "name": "EXECUTE"
}, - {
- "@type": "",
- "name": "ATOM_MANAGEMENT"
}, - {
- "@type": "",
- "name": "VIEW_RESULT"
}
]
}, - "id": "f3fb5e19-fc47-442e-a978-c47db961ecfb",
- "accountId": "account-12345",
- "name": "JsonRole",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69"
}Retrieves an instance of a Role object
Returns a single Role object based on the supplied role ID.
Authorizations:
path Parameters
| id required | string |
Responses
Response Schema:
| Description | string Description of the role |
object (Privileges) One or more privileges assigned to the role. | |
| accountId | string The account ID under which the role exists. |
| id | string The ID of the role. |
| name | string The name of the role. |
| parentId | string The ID of the role from which this role inherits privileges. |
Response samples
- 200
- 403
- 410
- 503
{- "@type": "Role",
- "Description": "Updated Role",
- "Privileges": {
- "@type": "Privileges",
- "Privilege": [
- {
- "@type": "",
- "name": "DEPLOY"
}, - {
- "@type": "",
- "name": "SCHEDULE_MAINTENANCE"
}
]
}, - "id": "f3fb5e19-fc47-442e-a978-c47db961ecfb",
- "accountId": "account-12345",
- "name": "Soap Role",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69"
}Modifies or updates a Role object
Updates a role as identified by its role ID.
Authorizations:
path Parameters
| id required | string |
Request Body schema: optional
| Description | string Description of the role |
object (Privileges) One or more privileges assigned to the role. | |
| accountId | string The account ID under which the role exists. |
| id | string The ID of the role. |
| name | string The name of the role. |
| parentId | string The ID of the role from which this role inherits privileges. |
Responses
Response Schema:
| Description | string Description of the role |
object (Privileges) One or more privileges assigned to the role. | |
| accountId | string The account ID under which the role exists. |
| id | string The ID of the role. |
| name | string The name of the role. |
| parentId | string The ID of the role from which this role inherits privileges. |
Request samples
- Payload
{- "Description": "Updated custom role",
- "Privileges": {
- "Privilege": [
- {
- "name": "API"
}, - {
- "name": "EXECUTE"
}, - {
- "name": "BUILD"
}
]
}, - "accountId": "accountId-12345",
- "name": "newRoleName",
- "id": "f3fb5e19-fc47-442e-a978-c47db961ecfb",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69f"
}Response samples
- 200
- 403
- 410
- 503
{- "@type": "Role",
- "Description": "my updated role",
- "Privileges": {
- "@type": "Privileges",
- "Privilege": [
- {
- "@type": "",
- "name": "EMBED"
}
]
}, - "id": "f3fb5e19-fc47-442e-a978-c47db961ecfb",
- "accountId": "account-12345",
- "name": "JsonRole",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69f"
}Retrieves multiple Role objects by identifier
To learn more about bulk, refer to the topic Bulk GET operations.
Authorizations:
Request Body schema: optional
Array of objects (BulkId) | |
| type | string Enum: "GET" "DELETE" "UPDATE" "CREATE" |
Responses
Response Schema:
Array of objects | |||||||||||
Array
| |||||||||||
Request samples
- Payload
{- "request": [
- {
- "id": "56789abc-def0-1234-5678-9abcdef01234"
}
], - "type": "GET"
}Response samples
- 200
- 403
- 410
- 503
{- "response": [
- {
- "Result": {
- "Description": "This is a custom role added",
- "Privileges": {
- "Privilege": [
- {
- "name": "string"
}
]
}, - "accountId": "accountId-12345",
- "id": "794f61e2-b483-40cd-81f9-de0f835fee1d",
- "name": "myRole",
- "parentId": "string"
}, - "index": 0,
- "id": "string",
- "statusCode": 0,
- "errorMessage": "string"
}
]
}Queries for a Role object(s)
For general information about the structure of QUERY filters, their sample payloads, and how to handle the paged results, refer to Query filters and Query paging.
Authorizations:
Request Body schema: optional
Possible properties include: name, parentId
required | object | ||||||||||
| |||||||||||
Responses
Response Schema:
| numberOfResults | integer <int32> |
| queryToken | string By default, the queryToken parameter is not available in the query response. It appears only when the query response contains more than 100 results. The maximum number of results returned per query is 100. To retrieve the next set of results, use the queryToken in the queryMore request. |
Array of objects (Role) |
Request samples
- Payload
{- "QueryFilter": {
- "expression": {
- "argument": [
- "string"
], - "operator": "EQUALS",
- "property": "name"
}
}
}Response samples
- 200
- 403
- 410
- 503
{- "@type": "QueryResult",
- "result": [
- {
- "@type": "Role",
- "Description": "This is a custom role",
- "Privileges": {
- "@type": "Privileges",
- "Privilege": [
- {
- "@type": "",
- "name": "API"
}, - {
- "@type": "",
- "name": "DEPLOY"
}, - {
- "@type": "",
- "name": "VIEW_RESULT"
}
]
}, - "id": "f73f99fb-bba2-4573-a0fe-e01bb95ebc20",
- "accountId": "account-12345",
- "name": "Other Role",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69"
}, - {
- "@type": "Role",
- "Description": " custom role",
- "Privileges": {
- "@type": "Privileges",
- "Privilege": [
- {
- "@type": "",
- "name": "API"
}, - {
- "@type": "",
- "name": "BUILD"
}, - {
- "@type": "",
- "name": "EXECUTE"
}
]
}, - "id": "794f61e2-b483-40cd-81f9-de0f835fee1d",
- "accountId": "account-12345",
- "name": "testRole",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69"
}, - {
- "@type": "Role",
- "Description": "Another custom role ",
- "Privileges": {
- "@type": "Privileges",
- "Privilege": [
- {
- "@type": "",
- "name": "API"
}, - {
- "@type": "",
- "name": "DEPLOY"
}, - {
- "@type": "",
- "name": "VIEW_RESULT"
}
]
}, - "id": "97e3fd58-4e72-436c-b90c-341fda9d9249",
- "accountId": "account-12345",
- "name": "Another Role",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69f"
}
], - "numberOfResults": 3
}Retrieves additional results for a Role query
To learn about using queryMore, refer to the topic Query paging.
Authorizations:
Request Body schema: text/plainrequired
Responses
Response Schema:
| numberOfResults | integer <int32> |
| queryToken | string By default, the queryToken parameter is not available in the query response. It appears only when the query response contains more than 100 results. The maximum number of results returned per query is 100. To retrieve the next set of results, use the queryToken in the queryMore request. |
Array of objects (Role) |
Response samples
- 200
- 403
- 410
- 503
{- "@type": "QueryResult",
- "result": [
- {
- "@type": "Role",
- "Description": "This is a custom role",
- "Privileges": {
- "@type": "Privileges",
- "Privilege": [
- {
- "@type": "",
- "name": "API"
}, - {
- "@type": "",
- "name": "DEPLOY"
}, - {
- "@type": "",
- "name": "VIEW_RESULT"
}
]
}, - "id": "f73f99fb-bba2-4573-a0fe-e01bb95ebc20",
- "accountId": "account-12345",
- "name": "Other Role",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69"
}, - {
- "@type": "Role",
- "Description": " custom role",
- "Privileges": {
- "@type": "Privileges",
- "Privilege": [
- {
- "@type": "",
- "name": "API"
}, - {
- "@type": "",
- "name": "BUILD"
}, - {
- "@type": "",
- "name": "EXECUTE"
}
]
}, - "id": "794f61e2-b483-40cd-81f9-de0f835fee1d",
- "accountId": "account-12345",
- "name": "testRole",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69"
}, - {
- "@type": "Role",
- "Description": "Another custom role ",
- "Privileges": {
- "@type": "Privileges",
- "Privilege": [
- {
- "@type": "",
- "name": "API"
}, - {
- "@type": "",
- "name": "DEPLOY"
}, - {
- "@type": "",
- "name": "VIEW_RESULT"
}
]
}, - "id": "97e3fd58-4e72-436c-b90c-341fda9d9249",
- "accountId": "account-12345",
- "name": "Another Role",
- "parentId": "ca7f37b3-f976-4d06-b885-81520b467a69f"
}
], - "numberOfResults": 3
}