user_organizations
Creates, updates, deletes, gets or lists a user_organizations resource.
Overview
| Name | user_organizations |
| Type | Resource |
| Id | datadog.organization.user_organizations |
Fields
The following fields are returned by SELECT queries:
- list_user_organizations
| Name | Datatype | Description |
|---|---|---|
id | string | ID of the user. |
attributes | object | Attributes of user object returned by the API. |
relationships | object | Relationships of the user object returned by the API. |
type | string | Users resource type. (users) (default: users, example: users) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_user_organizations | select | user_id | Get a user organization. Returns the user information and all organizations<br />joined by this user. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
user_id | string | The ID of the user. |
SELECT examples
- list_user_organizations
Get a user organization. Returns the user information and all organizations<br />joined by this user.
SELECT
id,
attributes,
relationships,
type
FROM datadog.organization.user_organizations
WHERE user_id = '{{ user_id }}' -- required
;