Users > Users > organizationsUsers
Commerce APIUsersUsersorganizationsUsers

organizationsUsers

POST:organizations/users.json

Description

Modify organization users.

Topic: Users

Arguments

data: [OrganizationUserModify!]!

Main argument for mutations.


ids: [String!]!

List of user ids. See also: Unique Identifiers

Example: ["us_EQzGqWoY"]


organization_id: String!

Unique organization identifier. See also: Unique Identifiers

Example: "og_EQzGqWoY"


Data Argument Fields

admin_entity_id: String

Entity ID the user is admin of

Example: "en_EQzGqWoY"

Valid when: admin_entity_id matches regexp pattern: ^en_


admin_organization: Boolean

Whether user is an admin of organization

Example: true


permissions: [String!]

A set of permission bits in context of a given shop


role_ids: [String!]

A set of roles in context of a given shop


shop_id: String

Shop ID user has permissions to work on

Example: "sh_EQzGqWoY"

Valid when: shop_id matches regexp pattern: ^sh_


Result

[OrganizationUser!]

Preview (typescript)

Loading module