Create, delete, and query Organization Memberships in Zendesk.
Table Specific Information
SelectThe following queries are processed server side while other filters are processed client side within the driver.
SELECT * FROM OrganizationMemberships SELECT * FROM OrganizationMemberships WHERE Id = '123' SELECT * FROM OrganizationMemberships WHERE UserId = '123' SELECT * FROM OrganizationMemberships WHERE OrganizationId = '123'
You can turn off the client-side execution of the query by setting SupportEnhancedSQL to false in which case any other search criteria will be ignored and an unfiltered response will be returned.
The The UserId and OrganizationId fields are required to insert (assigns a user to a given organization). Allowed for agents.
INSERT INTO OrganizationMemberships(UserId, OrganizationId) VALUES('772', '881')
You must specify the Id of the membership to delete it. Allowed for admins.
DELETE FROM OrganizationMemberships WHERE Id='123'
Automatically assigned when the membership is created.
The ID of the organization associated with this user, in this membership.
The ID of the user for whom this memberships belongs.
Denotes whether this is the default organization membership for the user. If false, returns null.
When this record was created.
When this record last got updated.
The url of this resource.