- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ05-24-2024 09:02 AM
Hey all,
I'm trying to get the future suspension date (if there is any) of all our JumpCloud users. There are hundreds of users but just a few of them have a suspension date. First I read all users using Get-JCUser. Then I loop through all users to get the suspension date using Get-JcSdkBulkUserState. This approach is quite heavy regarding API calls.
Is there a more straight forward approach that doesn't require hundreds of API calls?
Thanks in advance,
Tobias
Solved! Go to Solution.
- Labels:
-
API
-
PowerShell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ05-28-2024 11:38 AM
Running Get-JcSdkBulkUserState without any parameters returns all future suspension dates (if there are any) of all users.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ05-28-2024 11:38 AM
Running Get-JcSdkBulkUserState without any parameters returns all future suspension dates (if there are any) of all users.
![](/skins/images/1519CD93B86343CA58368DF3BFFB373D/responsive_peak/images/icon_anonymous_message.png)
![](/skins/images/1519CD93B86343CA58368DF3BFFB373D/responsive_peak/images/icon_anonymous_message.png)