Forum Discussion
- scottrNew Contributor III
we integrate with our HCM system to get a list of inactive users and disable using a business rule. the “guts” of the code is below.
Dim objUserinfo As UserInfo = BRApi.Security.Admin.GetUser( si, username )
objUserInfo.User.IsEnabled = False- SaurinPatelNew Contributor III
New to OneStream. Do you think you can share business rule with me?
- NicolasArgenteValued Contributor
Hi there!
Can you please give more info? According to what do you want to inactivate them?
It is tipically an admin job…
But you could have an SQL job that does it on the framework DB - Check the IsEnabled field in the table AuditSecUser
Cheers - charrisNew Contributor
What are the conditions you want to deactivate users under? There is a setting in the app config (talk to support if you're on cloud) to deactivate users when they haven't logged in for a set number of days.
- MahonriCruzNew Contributor II
We are an on-premise server. conditions should be set when bringing the status from the HR system where employees are terminated.
- charrisNew Contributor
The only built-in functionality is to disable after a period of inactivity. If you are using SSO and your identity provider is integrated with your HRIS to handle disabling accounts in there then you could rely on the authentication being disabled to prevent access and the built-in feature to subsequently disable the user in OneStream. If you're not using SSO or need the process to be more expedient, then as scottr mentioned above, you can use a business rule to disable users. This can be done either by having the BR run on a schedule with access to probe your HRIS for terminated users and take appropriate action, or if your HRIS or other orchestration tool can make a call to the OneStream API, you could attach the BR to a Data Management job and pass the user to be deactivated using the DM parameters.
Related Content
- 3 years ago
- 7 months ago