Fluent Commerce Logo
Docs
Sign In

GraphQL mutation removeUserRolesFromUser

How-to Guide

Author:

Randy Chan

Changed on:

14 May 2024

Key Points

  • Quick Example of how to use GraphQL mutation
    `removeUserRolesFromUser`

Steps

Step arrow right iconGraphQL mutation removeUserRolesFromUser



1POST: {{fluentApiHost}}/graphql
2
3
4
5#QUERY:
6
7mutation{
8  removeUserRolesFromUser(input:{
9    user:{username:"myUsername"} 
10    roles:[
11    	{role:{name:"ADMIN"} contexts:{contextType:"ACCOUNT" contextId:"FC_FASHION"}}  ,   
12    	{role:{name:"ADMIN"} contexts:{contextType:"RETAILER" contextId:"5000212"}}  ,          
13         {role:{name:"ADMIN"} contexts:{contextType:"AGENT" contextId:"123"}}  
14    ]
15  })
16   {
17    status
18  }
19}
20

Language: graphqlschema

Name: GraphQL mutation removeUserRolesFromUser

Description:

GraphQL mutation removeUserRolesFromUser



Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.

Fluent Logo