Adding Users to Group via the API

Raymond Setchfi
Kilo Explorer

Hi 

 

I am looking for some assistance if someone could assist. I can create the user which is all fine and well using the API, but when researching to add that user to a group. It appears that I need to look at using GlideRecord. 

I had a look into this further to see how its done etc through the communities, but it appears that this is to setup business rules, or something along those lines instead of actually adding it through the api. 

Can someone please advise a complete novice, on how to add a user to a group using the API? Also how this would look like within Postman?

Thanks 

6 REPLIES 6

Raymond Setchfi
Kilo Explorer

Thank you, Asbjørn. Exactly what I needed! 

 

Having a look around roles which I am needing, and there doesn't appear to be much clarity for users accessing the API only. Is there specific roles in which need to be added to get this?

 

at table level you can remove the entire table from being accessible to any webservices, eg Rest or Soap. by default a table is available. 

Other than that is it just plain ACL, the user you use is required to have access to the table and or fields it requests. 

be aware that if ACL restricts your access you will still receive a http 200 status code but the result will be empty. 

 

You can however also disable UI access to an account. so that the service account wont be able to sign in to the platform as a regular user.