younifyd
Menu

Create User Organization Membership

Create Organization Membership for User

POST/api/v2/users/{user_id}/organization_memberships

Use it in a workflow

  1. Add a step and choose the Zendesk connector.
  2. Pick the Create User Organization Membership action (under Organization Memberships).
  3. Fill in the fields below, then reference the result from later steps as {{createUserOrganizationMembership.response.data}}.

Request

Path parameters

user_idinteger (int64)required

The id of the user

Response

Returns 201 with an object. Read it in later steps with {{createUserOrganizationMembership.response.data.<field>}}.

organization_membershipobject
created_atstring (date-time)

When this record was created

defaultbooleanrequired

Denotes whether this is the default organization membership for the user. If false, returns `null`

idinteger (int64)

Automatically assigned when the membership is created

organization_idinteger (int64)required

The ID of the organization associated with this user, in this membership

organization_namestring

The name of the organization associated with this user, in this membership

updated_atstring (date-time)

When this record last got updated

urlstring

The API url of this membership

user_idinteger (int64)required

The ID of the user for whom this membership belongs

view_ticketsboolean

Denotes whether the user can or cannot have access to all organization's tickets.

json
{
  "organization_membership": {
    "created_at": "2009-05-13T00:07:08Z",
    "default": true,
    "id": 4,
    "organization_id": 12,
    "organization_name": "first organization",
    "updated_at": "2011-07-22T00:11:12Z",
    "url": "https://example.zendesk.com/api/v2/organization_memberships/4",
    "user_id": 29,
    "view_tickets": true
  }
}

Need more? See the Zendesk guide for connection setup and behaviour shared by every action.