Skip to content

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

Open
srtaalej wants to merge 1 commit into
mainfrom
fix/admin-users-get-expiration
Open

srtaalej wants to merge 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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing method from SDK // admin.users.getExpiration

1 participant