okta / okta-sdk-golang

A Golang SDK for interacting with the Okta management API, enabling server-side code to manage Okta users, groups, applications, and more.
https://github.com/okta/okta-sdk-golang
Other
173 stars 143 forks source link

Add query parameter for ListUserGroups() #412

Closed joaquimHPE closed 9 months ago

joaquimHPE commented 9 months ago

Describe the feature request?

We want to use pagination on ListUserGroups() and for that a query parameter is necessary. Okta core API "GET /api/v1/users/${userId}/groups" does supports pagination, however Okta's golang SDK does not due to the missing query parameter on (2) below. Note that ListGroupUsers on (1) below already has this query parameter.

(1) https://github.com/okta/okta-sdk-golang/blob/621d4eeb83c2913c8cf531964a98b9f4fb269c93/okta/group.go#L571 (2) https://github.com/okta/okta-sdk-golang/blob/621d4eeb83c2913c8cf531964a98b9f4fb269c93/okta/user.go#L556

image

So request is, can you please add a query parameters for ListUserGroups() in (2) very similar to what already exists for ListGroupUsers() in (1) ?

New or Affected Resource(s)

ListUserGroups() on (2)

Provide a documentation link

No response

Additional Information?

No response

duytiennguyen-okta commented 9 months ago

Hi @joaquimHPE, we are moving to go sdk v3 and has stop supporting v2. This issue will be resolve in the v3. We will be providing a migrating shortly