Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
Get user groups recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Jul 6, 2021
1 parent a8e4224 commit 8c300c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cbox/user/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (m *manager) GetUserGroups(ctx context.Context, uid *userpb.UserId) ([]stri
if err != nil {
return nil, err
}
url := fmt.Sprintf("%s/Identity/%s/groups", m.conf.APIBaseURL, internalID)
url := fmt.Sprintf("%s/Identity/%s/groups?recursive=true", m.conf.APIBaseURL, internalID)
groupData, err := m.apiTokenManager.SendAPIGetRequest(ctx, url, false)
if err != nil {
return nil, err
Expand Down

0 comments on commit 8c300c0

Please sign in to comment.