Skip to main content

user_organizations

Creates, updates, deletes, gets or lists a user_organizations resource.

Overview

Nameuser_organizations
TypeResource
Iddatadog.organization.user_organizations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the user.
attributesobjectAttributes of user object returned by the API.
relationshipsobjectRelationships of the user object returned by the API.
typestringUsers resource type. (default: users, example: users)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_user_organizationsselectuser_id, regionGet a user organization. Returns the user information and all organizations
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.

NameDatatypeDescription
regionstring(default: datadoghq.com)
user_idstringThe ID of the user.

SELECT examples

Get a user organization. Returns the user information and all organizations
joined by this user.

SELECT
id,
attributes,
relationships,
type
FROM datadog.organization.user_organizations
WHERE user_id = '{{ user_id }}' -- required
AND region = '{{ region }}' -- required
;