> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add A User To An Organization

Assigns a user to a given organization. Returns an error with status `422` if the user is already assigned to the organization.

<Note>
  External Documentation

  To learn more, visit the [Zendesk documentation](https://developer.zendesk.com/api-reference/ticketing/organizations/organization_memberships/#create-membership).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter       | Description                                             |
  | --------------- | ------------------------------------------------------- |
  | Organization ID | The ID of the organization you wish to add the user to. |
  | User ID         | The ID of the user you wish to add to the organization. |
</div>

## Example Output

```json theme={"dark"}
{
	"organization_membership": {
		"url": "https://xxxxxxxxxx.zendesk.com/api/v2/organization_memberships/xxxxxxxxxxxxxx.json",
		"id": "xxxxxxxxxxxxxx",
		"user_id": "xxxxxxxxxxxxxx",
		"organization_id": "xxxxxxxxxxxxxx",
		"default": true,
		"created_at": "2025-01-12T10:42:07Z",
		"organization_name": "Blink",
		"updated_at": "2025-01-12T10:42:07Z",
		"view_tickets": false
	}
}
```

## Workflow Library Example

[Add a User to an Organization with Zendesk and Send Results Via Email](https://library.blinkops.com/workflows/add-a-user-to-an-organization-with-zendesk-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/add-a-user-to-an-organization-with-zendesk-and-send-results-via-email/canvas" />
</div>
