Repository navigation
feat: add admin.analytics.members.metadata method - #2064
Draft
lukegalbraithrussell wants to merge 4 commits into
Draft
lukegalbraithrussell wants to merge 4 commits into
lukegalbraithrussell wants to merge 4 commits into
Conversation
Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
3 of 16 tasks
The activity method is added separately in #2063, so this branch only adds admin.analytics.members.metadata. Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
lukegalbraithrussell
changed the base branch from
feat-admin-analytics-members-activity
to
main
November 18, 2026 20:23
…adata Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2064 +/- ##
==========================================
+ Coverage 84.60% 84.65% +0.04%
==========================================
Files 118 118
Lines 14067 14085 +18
==========================================
+ Hits 11901 11923 +22
+ Misses 2166 2162 -4 ☔ View full report in Codecov by Harness. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds the
admin.analytics.members.metadatamethod to the Web API clients.admin_analytics_members_metadatareturns profile metadata for each member of an organization or workspace: names, title, email addresses, workspaces, and SCIM profile attributes. All of its arguments are optional:include_deactivated_since,team_id,member_types,query,cursor, andlimit.member_typestakes a string or a list, and a list is sent comma-separated.admin_analytics_members_activity, added in feat: add admin.analytics.members.activity method #2063, which returns members by ID only. Join the two onuser_id, and search members here withquery.scripts/codegen.py, and the method is added to the Web API coverage test.This pull request is independent of #2063, which adds
admin.analytics.members.activity, so either one can be reviewed and merged first. Whichever merges second needs a rebase to update the endpoint count in the coverage test. Related to #2014.Testing
With an org-level user token that has the
admin.analytics:readscope, from a top-level admin or owner on an Enterprise+ org:client.admin_analytics_members_metadata()and confirm each entry inmembershasuser_idand profile fields likereal_nameandemail.queryset to part of a member's name, and confirm only matching members are returned.AsyncWebClientto check the generated async method.Live check: these calls ran against an Enterprise developer sandbox with an org-level user token that has
admin.analytics:read. With this branch'sWebClient, the call with no arguments returns profile fields likereal_name,email, andworkspaces.querywith part of a member's name returns only matching members, andmember_typesworks as a list and as a string.include_deactivated_sinceis accepted.limit=3withcursorpages through every member with no repeats and matchestotal_count.LegacyWebClientandAsyncWebClientreturnoktoo. The raw method also accepts both GET and POST, so the client's default POST works.Category
/docs(Documents)/tutorial(PythOnBoardingBot tutorial)tests/integration_tests(Automated tests for this library)Requirements
python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.shafter making the changes.🤖 Generated with Claude Code