Skip to content

feat: add admin.analytics.members.metadata method - #1717

Draft
lukegalbraithrussell wants to merge 1 commit into
mainfrom
feat-admin-analytics-members-metadata
Draft

lukegalbraithrussell wants to merge 1 commit into
mainfrom
feat-admin-analytics-members-metadata

Conversation

@lukegalbraithrussell

Copy link
Copy Markdown
Contributor

Summary

This pull request adds the admin.analytics.members.metadata method to the sync and async clients.

  • adminAnalyticsMembersMetadata returns profile metadata for each member of an organization or workspace: names, title, email addresses, workspaces, and SCIM profile attributes. It takes includeDeactivatedSince, teamId, memberTypes, query, limit, and cursor, all optional. memberTypes is a list, sent comma-separated.
  • workspaces is a map of workspace ID to workspace name, so it's typed Map<String, String>.
  • It's the companion of admin.analytics.members.activity, added in feat: add admin.analytics.members.activity method #1716, which returns members by ID only. Join the two on user_id.
  • It's Tier 2, in both MethodsRateLimits and rate_limit_tiers.json.
  • Adds the json-logs sample, which node-slack-sdk generates its response type from (feat(web-api): add admin.analytics.members.metadata method node-slack-sdk#2874), plus local sync, async, and response-parsing tests and a remote test.

This pull request is independent of #1716, so either one can be reviewed and merged first. Whichever merges second needs a rebase, since both edit the same places in the client classes and the method count in MethodsTest.

Testing

  • Run test_with_remote_apis.methods_admin_api.AdminApi_analytics_members_metadata_Test with SLACK_SDK_TEST_GRID_ORG_ADMIN_USER_TOKEN (admin.analytics:read).

Live check: these calls ran against an Enterprise developer sandbox with this branch's compiled client and failOnUnknownProperties on, so every returned field is typed. query returns only matching members, memberTypes filters the results, includeDeactivatedSince is accepted, workspaces parses as a map, limit(3) with cursor pages through every member with no repeats, and the async client returns ok. ./scripts/run_no_prep_tests.sh's local tests for slack-api-client pass on JDK 17.

Category

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

🤖 Generated with Claude Code

Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 73.95%. Comparing base (533c8bc) to head (27e01be).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...java/com/slack/api/methods/RequestFormBuilder.java 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1717      +/-   ##
============================================
+ Coverage     73.82%   73.95%   +0.13%     
- Complexity     4760     4772      +12     
============================================
  Files           488      488              
  Lines         14856    14869      +13     
  Branches       1543     1544       +1     
============================================
+ Hits          10967    10997      +30     
+ Misses         2970     2958      -12     
+ Partials        919      914       -5     
Flag Coverage Δ
jdk-14 73.95% <92.30%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

This branch has not been deployed

No deployments
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.

1 participant