Graph
Users

Manage the associations of a User

This endpoint allows you to manage the direct associations of a User.

A direct association can be a non-homogeneous relationship between 2 different objects, for example Users and Systems.

Sample Request

curl -X POST https://console.jumpcloud.com/api/v2/users/{UserID}/associations \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}' \
  -d '{
    "attributes": {
      "sudo": {
      "enabled": true,
        "withoutPassword": false
      }
    },
    "op": "add",
    "type": "system_group",
    "id": "{GroupID}"
  }'
post/api/v2/users/{user_id}/associations

Request

Headers

x-org-idstring

Organization identifier that can be obtained from console settings.

Request body

idstring required

The ObjectID of graph object being added or removed as an association.

op'add' | 'remove' | 'update' required

How to modify the graph connection.

type'active_directory' | 'application' | 'g_suite' | 'idp_routing_policy' | 'ldap_server' | 'office_365' | 'password_manager_item' | 'policy' | 'policy_group' | 'radius_server' | 'system' | 'system_group' required

Targets which a "user" can be associated to.

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.