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. (users) (default: users, example: users)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_user_organizationsselectuser_idGet 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.

NameDatatypeDescription
sitestringThe 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_idstringThe ID of the user.

SELECT examples

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
;