From 714ccfb286abb9d6997f989486d61fd0fa2ae88b Mon Sep 17 00:00:00 2001 From: Giuseppe Lo Presti Date: Fri, 9 Aug 2024 17:07:25 +0200 Subject: [PATCH] Adapt another call to new Grappa API --- user/rest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/rest.go b/user/rest.go index 4eab659..7b699ca 100644 --- a/user/rest.go +++ b/user/rest.go @@ -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 {