Skip to content

feat: add admin.users.getExpiration method - #1983

Merged
srtaalej merged 1 commit into
mainfrom
fix/admin-users-get-expiration
Oct 13, 2026
Merged

srtaalej merged 1 commit into
mainfrom
fix/admin-users-get-expiration

Conversation

@srtaalej

@srtaalej srtaalej commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the missing admin.users.getExpiration Web API method to WebClient (sync, async, and legacy via codegen). It takes a required user_id and an optional target_team, and is called with GET as documented.

Fixes #1982

Testing

  • ./scripts/run_tests.sh tests/slack_sdk_async/web/test_web_client_coverage.py passes with the new method registered in the coverage test
  • ./scripts/lint.sh passes

Category

  • slack_sdk.web.WebClient (sync/async) (Web API client)
  • slack_sdk.webhook.WebhookClient (sync/async) (Incoming Webhook, response_url sender)
  • slack_sdk.socket_mode (Socket Mode client)
  • slack_sdk.signature (Request Signature Verifier)
  • slack_sdk.oauth (OAuth Flow Utilities)
  • slack_sdk.models (UI component builders)
  • slack_sdk.scim (SCIM API client)
  • slack_sdk.audit_logs (Audit Logs API client)
  • slack_sdk.rtm_v2 (RTM client)
  • /docs (Documents)
  • /tutorial (PythOnBoardingBot tutorial)
  • tests/integration_tests (Automated tests for this library)

Requirements

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've run python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.sh after making the changes.

@srtaalej
srtaalej requested a review from a team as a code owner October 9, 2026 20:13
@codecov

codecov Bot commented Oct 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.30%. Comparing base (5029dac) to head (ac0887b).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1983      +/-   ##
==========================================
+ Coverage   84.28%   84.30%   +0.01%     
==========================================
  Files         118      118              
  Lines       13679    13688       +9     
==========================================
+ Hits        11530    11539       +9     
  Misses       2149     2149              

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

@WilliamBergamin WilliamBergamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for working on this 🙏

@srtaalej
srtaalej merged commit aac9482 into main Oct 13, 2026
18 checks passed
@srtaalej
srtaalej deleted the fix/admin-users-get-expiration branch October 13, 2026 19:51
@zimeg zimeg added this to the 3.next milestone Oct 13, 2026
@zimeg zimeg added enhancement M-T: A feature request for new functionality Version: 3x labels Oct 13, 2026
@zimeg

zimeg commented Oct 13, 2026

Copy link
Copy Markdown
Member

🏁 Also fixes #1773

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality semver:minor Version: 3x web-client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing method from SDK // admin.users.getExpiration

3 participants