Web Service Method to remove a user from group(s)

Is it possible to use the following in a workflow web service to remove a user from all groups?

POST https://my.support.domainTDWebApi/api/people/{uid}/groups?removeOtherGroups={removeOtherGroups}

Is this perhaps the deal breaker?

This action can only be performed by special key-based administrative service accounts and not standard TeamDynamix users.

If not, is there another way to accomplish this when an employee separates?

 

Asked by Scott Cory on Wed 10/13/21 6:23 PM
Sign In to leave feedback or contribute an answer

Answer (1)

This answer has been marked as the accepted answer
Mark Sayers Thu 10/14/21 8:58 AM

Hello Scott,

Unfortunately web service methods do not support the API admin/auth endpoint to allow the special key-based administrative service account to authenticate into the API to perform that action. From the context of a web service method this means that endpoint is not usable.

You could certainly use the API via any tool like Fiddler or Postman to accomplish that call though, or if your school has purchased iPaaS it is capable of making that call for you and an iPaaS flow can be called from a ticketing workflow via an iPaaS flow step.

No feedback