Skip to content

Commit

Permalink
Adapt another call to new Grappa API
Browse files Browse the repository at this point in the history
  • Loading branch information
glpatcern committed Aug 9, 2024
1 parent eb48f7b commit 714ccfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func (m *manager) GetUserGroups(ctx context.Context, uid *userpb.UserId) ([]stri
}

// TODO (gdelmont): support pagination! we may have problems with users having more than 1000 groups
url := fmt.Sprintf("%s/api/v1.0/Identity/%s/groups?field=displayName&recursive=true", m.conf.APIBaseURL, uid.OpaqueId)
url := fmt.Sprintf("%s/api/v1.0/Identity/%s/groups/recursive?field=displayName", m.conf.APIBaseURL, uid.OpaqueId)

var r GroupsResponse
if err := m.apiTokenManager.SendAPIGetRequest(ctx, url, false, &r); err != nil {
Expand Down

0 comments on commit 714ccfb

Please sign in to comment.