Skip to main content

When we used ‘groups’ we could easily find out which ‘groups’ an individual user was in, via the API call:

     GET /manage/v1/user/{userid}/groups

This would tell me which groups this individual user was a member of.

How can I do the same thing with Audiences?? (since the change to ‘audiences’ and the removal of ‘groups’)

The only way I see is to get a list of ALL Audiences, then call the API repeatedly for each Audience to get ALL members of each Audience (veeerrrrryyyy sssllloooooowww)

Anyone have a better idea? It seems like ‘groups’ have been removed but the equivalent facilities are not being offered for audiences.

Many Thanks

Hello @ianl … Are you needing this information for true machine to machine scripting, or just as an alternative approach to get information as an administrator?  If machine-to-machine, I agree that I don’t think you can do it, which is quite sad.

If you are just looking to find information as an administrator, would this work?

 


Thanks @Kmallette, I wanted this for machine-to-machine communication - we have a separate software system which we are trying to link to Docebo, to allow users to manage their staff just through our interface instead of 2 separate UIs.

I am thinking the only way to do this is:

       GET /manage/v1/user/{userid}/groups

and GET /audeinces/v1/audience

and GET /manage/v1/group

This will get all the audience names and ids, and all group names and ids, then I can match them on names - this would give me the Audience IDs of all the ‘groups’ that the user belongs to.

BUT I guess this will only work until the ‘groups’ api endpoint is removed. It is still working on the platform I am using, so maybe they are on an old version (on the API Deprecated calls page it says groups were removed in Jan 2024)


Reply