updateUserOrgRole

This mutation allows the update of the user organization role.

Sample Mutation

Update the organization's role to User.

mutation{
  updateUserOrgRole(userID:"e1836faf-3c5c-4470-9096-24c6c4f4d400" orgID:"7b32be5b-bd48-428b-b079-f83016516dbf" role:"User"){
    id
    userId
  }
}

Sample Response

{
  "data": {
    "updateUserOrgRole": {
      "id": "811acc14-6546-45c4-bf5e-95e10826f711",
      "userId": "e1836faf-3c5c-4470-9096-24c6c4f4d400"
    }
  }
}

Result

540

Arguments

NameTypeDescriptionRequired
userIDUUIDThe user ID.Yes
orgIDUUIDThe organization ID.Yes
roleStringThe role of the user organization.Yes

Returns

NameTypeDescription
UserOrganizationObjectContains all the information from UserOrganization such as ID, user ID, the name of the user etc.

Example

Create an update of a role from an organization: