Add a user to a group, in Looker, using Api - try with curl or Postman

kalina
New Member

Hi,

I need to add a user to a certain group in Looker.

I have logged in, retrieved the token, retrieved the user id (ex: 80) and group id (ex: 8 ) for certain users and group names, but I am not able to add the user to group with the following api: https://looker-blablabla/api/4.0/groups/8/users, body: {"user_id": 80}, even though I have successfully added it using the marketplace_extension_api_explorer - what am I doing wrong?

CaptureLooker.JPGCan anyone help?

Thanks,

GJ

 

0 1 69
1 REPLY 1

Hi GJ! Are you passing the bearer token from a login call for that user in the Authorization tab of that Postman call? It looks like you have the API request and body composed correctly so there might be an authorization issue. Another thing to check is that group 8 and user 80 both exist.