Skip to content

Update Locked Out field when Active field changes on User record #1144

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

Merged
merged 3 commits into from
Oct 5, 2024

Conversation

aswamy93
Copy link
Contributor

@aswamy93 aswamy93 commented Oct 4, 2024

As per OOB, the "Locked Out" field will be set to true if Active field set to false. But, the vice-versa case is not implemented. For example, If Employee is on long leave like maternity leave etc., then the user account will be set inactive temporarily and reactivated upon his/arrival to office. This causes, user account to be Active and Locked out as true which makes the login to fail

Get more information on use case and set up of the business rule
Added script to use in the business rule
corrected typo
@earlduque
Copy link
Contributor

Well, this isn't much of a code snippet, I'm going to approve this Pull request because I like the use case and think it's relevant for this repository. Thank you for your contribution!

@earlduque earlduque merged commit 3d7ca79 into ServiceNowDevProgram:main Oct 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants