Expand my Community achievements bar.

remove all users from a group in one go using User Management Action API?

Avatar

Level 1

Hi There,

 

I am using the User Management Action API and trying to remove all users from a group in one go,

In the user managment Action commands, I can specify the user and use "all" to remove all user's group memberships

"do": [{
      "remove": "all"
      }]

but in Group managment action commands, the "remove": "all" is not available, is it possible to use "everyone" or a wildcard to remove all users [not just 10] from a group?

I am using the UMAPI sample

[{
  "user": "existing user's email in admin console goes here",
  "requestID": "action_8",
    "do": [{
      "remove": {
        "group": ["Testing Group"]
      }
    }]
}]

 

 

 

1 Reply

Avatar

Employee

Hi Mohamed,

I think this question was already covered inside the support ticket you raised with dev support.

Please confirm if all is clear at this point, to close this thread.

Thank you!