Remove inactive users which were SSO enabled

Hi, I was looking for some graphql query or REST API query which can give me list of users who are inactive and are SSO enabled.
I try to dig in,but no luck. Can someone help me around this?

Thanks in advance :slight_smile:

Hello, @akki! Welcome to the Community!

To be able to query the users who are not active for the last N hours, you need to update the SSO session duration to N hours. After that, you could query the most recent SSO sign-in for all users and then remove the users who weren’t active within that N-hour period you specified earlier from Buildkite using GraphQL.

Please keep it in mind that if the SSO session is kept alive for a long time, it doesn’t really indicate recent activity - just the fact that the users were signed in via SSO.


This topic was automatically closed after 3 days. New replies are no longer allowed.