Boomi Platform API Reference (1.0.0) - AccountUserRole
The Account User Role object represents the linkage between an user, the user's account, and a defined role for the account.
Required Privileges
Read and Write access
- API — Use the Boomi Platform API to access account data.
- ACCOUNT_ADMIN — Account configuration and administration.
Creates an AccountUserRole object
Adds a user to an account. If you provide a user ID (email address) that does not exist, the system creates the user and adds them to the account.
When creating a new user, the API request does not require the firstName and lastName fields. If you do not provide those fields, it assigns the default firstName or lastName values automatically. If you include the firstName and lastName fields in a CREATE request for a user name that exists, the request ignores those fields.
Authorizations:
Request Body schema: optional
| accountId | string The account ID. |
| firstName | string The first name of a user in the account. |
| id | string |
| lastName | string The last name of a user in the account. |
| notifyUser | boolean If true |
| roleId | string The ID of the role. |
| userId | string The user ID. |
Responses
Response Schema:
| accountId | string The account ID. |
| firstName | string The first name of a user in the account. |
| id | string |
| lastName | string The last name of a user in the account. |
| notifyUser | boolean If true |
| roleId | string The ID of the role. |
| userId | string The user ID. |
Request samples
- Payload
{- "accountId": "account-123456",
- "userId": "user123@company.biz",
- "roleId": "01234567-89ab-cdef-0123-456789abcdef",
- "firstName": "John",
- "lastName": "Doe",
- "notifyUser": true
}Response samples
- 200
- 403
- 410
- 503
{- "@type": "AccountUserRole",
- "id": "Ab0Cd1Ef1Gh3Ij4Kl5Mn6Op7Qr8St9Uv0Wx9Yz8Zy7Xw6Vu5Ts4Rq3Po2Nm1Lk0Ji1Hg",
- "accountId": "account-123456",
- "userId": "user123@company.biz",
- "roleId": "01234567-89ab-cdef-0123-456789abcdef",
- "firstName": "John",
- "lastName": "Doe",
- "notifyUser": true
}Queries for an AccountUserRole 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: accountId, userId, roleId
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 (AccountUserRole) |
Request samples
- Payload
{- "QueryFilter": {
- "expression": {
- "argument": [
- "user123@company.biz"
], - "operator": "EQUALS",
- "property": "userId"
}
}
}Response samples
- 200
- 403
- 410
- 503
{- "numberOfResults": 2,
- "@type": "QueryResult",
- "result": [
- {
- "@type": "AccountUserRole",
- "id": "Ab0Cd1Ef1Gh3Ij4Kl5Mn6Op7Qr8St9Uv0Wx9Yz8Zy7Xw6Vu5Ts4Rq3Po2Nm1Lk0Ji1Hg",
- "accountId": "account-123456",
- "userId": "user123@company.biz",
- "roleId": "01234567-89ab-cdef-0123-456789abcdef",
- "firstName": "John",
- "lastName": "Doe",
- "notifyUser": true
}, - {
- "@type": "AccountUserRole",
- "id": "gAb0Cd1Ef1Gh3Ij4Kl5Mn6Op7Qr8St9Uv0Wx9Yz8Zy7Xw6Vu5Ts4Rq3Po2Nm1Lk0Ji1H",
- "accountId": "account-123456",
- "userId": "user123@company.biz",
- "roleId": "fedcba98-7654-3210-fedc-ba9876543210",
- "firstName": "Jane",
- "lastName": "Doe",
- "notifyUser": true
}
]
}Retrieves additional results for an AccountUserRole 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 (AccountUserRole) |
Response samples
- 200
- 403
- 410
- 503
{- "numberOfResults": 2,
- "@type": "QueryResult",
- "result": [
- {
- "@type": "AccountUserRole",
- "id": "Ab0Cd1Ef1Gh3Ij4Kl5Mn6Op7Qr8St9Uv0Wx9Yz8Zy7Xw6Vu5Ts4Rq3Po2Nm1Lk0Ji1Hg",
- "accountId": "account-123456",
- "userId": "user123@company.biz",
- "roleId": "01234567-89ab-cdef-0123-456789abcdef",
- "firstName": "John",
- "lastName": "Doe",
- "notifyUser": true
}, - {
- "@type": "AccountUserRole",
- "id": "gAb0Cd1Ef1Gh3Ij4Kl5Mn6Op7Qr8St9Uv0Wx9Yz8Zy7Xw6Vu5Ts4Rq3Po2Nm1Lk0Ji1H",
- "accountId": "account-123456",
- "userId": "user123@company.biz",
- "roleId": "fedcba98-7654-3210-fedc-ba9876543210",
- "firstName": "Jane",
- "lastName": "Doe",
- "notifyUser": true
}
]
}