Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUT-4112: Userstate Lookups #583

Merged
merged 19 commits into from
Jun 13, 2024
Merged

Conversation

gweinjc
Copy link
Contributor

@gweinjc gweinjc commented Jun 11, 2024

Issues

What does this solve?

Introducing a new function to the JumpCloud PowerShell module called Get-JCScheduledUserstate

This function will allow for admins to see all of their scheduled userstate changes in their org, as well as being able to filter based on scheduled suspensions, activations or even UserIDs

Is there anything particularly tricky?

A single user can have multiple scheduled userstate changes. As an example, a user can be scheduled for suspension at 7/1/2024 as well as being scheduled for activation at 8/1/2024. Looking up the user by their UserID should return both results

How should this be tested?

  1. In your admin console, schedule a few users to be suspended as well as a few users to be activated at a later time. Make note of the time of suspension/activation as it should be your local time.
  2. To get a list of scheduled user suspensions run the following:
Get-JCScheduledUserstate -State 'SUSPENDED'
  1. Validate that this list matches the list of users you scheduled in the admin console
  2. To get a list of scheduled user activations run the following:
Get-JCScheduledUserstate -State 'ACTIVATED'
  1. Validate that this list matches the list of users you scheduled in the admin console
  2. To get a list of a single user's scheduled userstate changes run the following:
Get-JCScheduledUserstate -UserID "UserID"
  1. Validate that this list matches the list of users you scheduled in the admin console

@gweinjc gweinjc added minor minor version release PowerShell Module Release for JumpCloud PowerShell Module labels Jun 11, 2024
@gweinjc gweinjc requested a review from a team as a code owner June 11, 2024 18:42
jworkmanjc
jworkmanjc previously approved these changes Jun 12, 2024
Copy link
Contributor

@jworkmanjc jworkmanjc left a comment

Choose a reason for hiding this comment

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

Screenshot 2024-06-12 at 3 36 43 PM
Tested working for me along with multiple users! Approved!

kmaranionjc
kmaranionjc previously approved these changes Jun 12, 2024
Copy link
Contributor

@kmaranionjc kmaranionjc left a comment

Choose a reason for hiding this comment

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

Tested on my VM, great job on this!
image
image

@gweinjc gweinjc dismissed stale reviews from kmaranionjc and jworkmanjc via 8c70d16 June 12, 2024 22:36
Copy link
Contributor

@jworkmanjc jworkmanjc left a comment

Choose a reason for hiding this comment

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

docs updated, looks good!

@gweinjc gweinjc merged commit b296458 into master Jun 13, 2024
10 checks passed
@gweinjc gweinjc temporarily deployed to PublishToPSGallery June 13, 2024 18:15 — with GitHub Actions Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor minor version release PowerShell Module Release for JumpCloud PowerShell Module
Development

Successfully merging this pull request may close these issues.

3 participants