AdrianK | 2023-12-22 03:02:03 UTC | #1
I’ve been examining the api with respect to Teams. NOTE: this relates to Work Teams and is different to the team that is returned using the Users api (not sure why Genesys decided to use "teams" in two different ways).
From what I can see, we can use the api to:
- Get a Team listing
- Get the team for a teamid
- Get the members of a Team using the teamid
However, if I have a userId, how do I get the Team that this user belongs to?
Is a user the same as a member?
Even if I have a memberId, I don’t see the api to retrieve the Team name or teamId that the member is part of?
Jerome.Saint-Marc | 2024-01-02 15:41:38 UTC | #2
Hello,
However, if I have a userId, how do I get the Team that this user belongs to?
You can use GET /api/v2/users/{userId}, with expand parameter containing team
If the user is part of a Work Team, the response will contain a team attribute with info on the work team the user belongs to (a user can only belong to one work team at maximum).
Is a user the same as a member? If a user is part of a work team (or queue or group or...), then he is a member of the work team (or queue or group). The id of the member will match the id of the user (userId).
Regards,
system | 2024-02-01 15:42:01 UTC | #3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 23827