Skip to content

[SDK-4654] support organization get member roles#574

Merged
jimmyjames merged 1 commit intomasterfrom
members-with-roles
Oct 25, 2023
Merged

[SDK-4654] support organization get member roles#574
jimmyjames merged 1 commit intomasterfrom
members-with-roles

Conversation

@jimmyjames
Copy link
Copy Markdown
Contributor

Changes

This change adds support for sending the fields and include_fields parameters to the GET /api/v2/organizations/{orgId/members endpoint.

Usage

// return fields roles, email, name, user_id
FieldsFilter fieldsFilter = new FieldsFilter().withFields("roles,email,name,user_id", true);

List<Member> membersList = managementAPI.organizations().getMembers("orgId", pageFilter, fieldsFilter)
    .execute()
    .getBody()
    .getItems();

Role firstMemberRole = membersList.get(0).getRoles();

Fixes #573

@jimmyjames jimmyjames requested a review from a team as a code owner October 24, 2023 21:05
@jimmyjames jimmyjames temporarily deployed to internal October 24, 2023 21:06 — with GitHub Actions Inactive
@jimmyjames jimmyjames temporarily deployed to internal October 24, 2023 21:06 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

@poovamraj poovamraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jimmyjames jimmyjames merged commit a1b7ffc into master Oct 25, 2023
@jimmyjames jimmyjames deleted the members-with-roles branch October 25, 2023 18:13
@jimmyjames jimmyjames mentioned this pull request Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add roles to organization member call

2 participants