07/18/2023 08:02 PM
Hi All,
We have a requirement like if user gets terminated he should be moved to temporary OU for five days. After five days he should be moved to permanent disabled OU in AD.
Do anyone idea on achieving this?
07/18/2023 08:07 PM
You can call update account task and define logic based on certain attributes in rule
07/18/2023 08:12 PM
Could you please give me a brief overview of this?
07/18/2023 08:35 PM
Create another user update rule after 5 days again call REMOVEACCOUNTACTION and move to final OU.
07/18/2023 11:40 PM
Hi @Vidhya ,
To move the user to a temporary OU for 5 days, you can use a "user update rule" upon user termination. (You can define the temporary OU in the DISABLEACCOUNTJSON)
After 5 days to move the user to a permanent OU, you can alternatively use an actionable analytics control with the action as "delete account" to move the user to a permanent disabled OU. (Define the permanent disabled OU in the REMOVEACCOUNTJSON)
Please let me know if this helps or you have any further questions.
07/19/2023 03:22 AM
I am using using SQL query in analytics. Its fine right
07/19/2023 03:25 AM
Yes. SQL should be fine
07/19/2023 03:59 AM
I'm trying to call this analytics through rest connection .
I want to know what we give here in connection this line: url: {url}/api/v5/fetchControlDetailsES
Is it fetchControlDetailsES?
Because when we used runtime analytics we used fetchControlDetailsES.
07/19/2023 04:33 AM
Hi @Vidhya ,
Please create a job trigger for the analytics and utilise the same in the below Rest Call to invoke the analytics.
API to be used: {{url}}/ECM/{{path}}/runAnalyticsControls
Saviynt Security Manager API Reference v5.5SP5/v2020.1 (getpostman.com)
You also need to specify the Default action in your analytics. Also, better to use aliases in your query (accounts a, users u)
'deleteAccount' as Default_Action_For_Analytics
Thanks,
Armaan
07/19/2023 05:14 AM
Hi @armaanzahir ,
I have done the same but it doesnt create any tasks.
We get data when we run the query in data analyzer but the job is running for one second and it is success .
07/19/2023 06:20 PM
07/19/2023 04:18 AM
Hi @naveenss ,
I have done actionable analytics and action as delete account .
Following is my query:
select username,ACCOUNTKEY acctkey,datediff(STR_TO_DATE(DATE_FORMAT(termDate,'%d-%m-%Y'),'%d-%m-%Y'),STR_TO_DATE(DATE_FORMAT(curdate(),'%d-%m-%Y'),'%d-%m-%Y')) as Day from users left join accounts on systemUsername = name where datediff(STR_TO_DATE(DATE_FORMAT(termDate,'%d-%m-%Y'),'%d-%m-%Y'),STR_TO_DATE(DATE_FORMAT(curdate(),'%d-%m-%Y'),'%d-%m-%Y'))=-5
When i run the job its not updating the customproperty65 as well it doesnt create any pending tasks
07/19/2023 07:26 PM
use deprovision access
When Deprovision Access is configured as an allowed action, it removes the entitlement from a particular account. When this action is performed on a record, a Remove Access task is created for removing access in the target application.
The Analytics query must have the columns given below:
entvaluekey- Entitlement value key of the entitlement which will be removed from the account.
acctKey - Accountkey of the account from which the entitlement access will be revoked.
Sample query:
Schedule from Run All V2 Analytics Job
select ae1.entitlement_valuekey as entvaluekey,ev.ENTITLEMENT_VALUE,ae1.accountkey as acctKey, a.name, 'Deprovision Access' as 'Default_Action_For_Analytics' from account_entitlements1 ae1, accounts a , entitlement_values ev where a.accountkey = ae1.accountkey and ev.ENTITLEMENT_VALUEKEY=ae1.ENTITLEMENT_VALUEKEY and a.endpointkey=12;
Schedule from Run All V1 Analytics Job
select ae1.entitlement_valuekey as entvaluekey,ev.ENTITLEMENT_VALUE,ae1.accountkey as acctKey, a.name, 'Deprovision Access' as 'Default_Action_For_Analytics' from account_entitlements1 ae1, accounts a , entitlement_values ev where a.accountkey = ae1.accountkey and ev.ENTITLEMENT_VALUEKEY=ae1.ENTITLEMENT_VALUEKEY and a.endpointkey=12;
This action can also be configured as a default action, i.e., it will be automatically performed when the Analytics control is executed.
07/19/2023 09:19 PM
Hi @vidyaa
Can you please try the below query?
SELECT
u.username,
a.ACCOUNTKEY AS acctKey,
DATEDIFF(STR_TO_DATE(DATE_FORMAT(termDate, '%d-%m-%Y'),
'%d-%m-%Y'),
STR_TO_DATE(DATE_FORMAT(CURDATE(), '%d-%m-%Y'),
'%d-%m-%Y')) AS Day,
'Delete Account' as Default_Action_For_Analytics
FROM
users u
LEFT JOIN
accounts a ON u.systemUsername = a.name
WHERE
DATEDIFF(STR_TO_DATE(DATE_FORMAT(u.termDate, '%d-%m-%Y'),
'%d-%m-%Y'),
STR_TO_DATE(DATE_FORMAT(CURDATE(), '%d-%m-%Y'),
'%d-%m-%Y')) = - 5
Please let me know if this helps!
07/19/2023 09:28 PM
I tried the above query it fetches the result in data analyzer but when i try to run it manually its not editable . Please refer the screenshot below:
07/19/2023 09:31 PM
Can you confirm if you have selected "Delete Account" in the Allowed action option? Also, in the query please add SYSDATE() in your query like below:
SELECT
u.username,
a.ACCOUNTKEY AS acctKey,
DATEDIFF(STR_TO_DATE(DATE_FORMAT(termDate, '%d-%m-%Y'),
'%d-%m-%Y'),
STR_TO_DATE(DATE_FORMAT(CURDATE(), '%d-%m-%Y'),
'%d-%m-%Y')) AS Day,
SYSDATE(),
'Delete Account' as Default_Action_For_Analytics
FROM
users u
LEFT JOIN
accounts a ON u.systemUsername = a.name
WHERE
DATEDIFF(STR_TO_DATE(DATE_FORMAT(u.termDate, '%d-%m-%Y'),
'%d-%m-%Y'),
STR_TO_DATE(DATE_FORMAT(CURDATE(), '%d-%m-%Y'),
'%d-%m-%Y')) = - 5
07/19/2023 09:35 PM
Yes, I added delete account in allowed action . And when i run this analytic with sysdate() . I get below error:
07/19/2023 09:37 PM
Can you please share the screenshot of the analytics configuration?
07/19/2023 09:40 PM
07/19/2023 11:07 PM
Hi @Vidhya ,
The configuration looks good. Can you please remove the SYSDATE() from the query and execute the analytics once? And please share the entire logs for the run
07/19/2023 11:27 PM
This is the error I'm facing when I run the job
07/19/2023 11:58 PM
From the logs, I could see you are running the account import job instead of user import? Can you please confirm?
07/20/2023 12:06 AM
Yes, user import doesnt do anything
07/20/2023 12:06 AM
Hi @Vidhya ,
dis you tried with account import job which I mentioned above?
Application Data Import (Single Threaded)
07/20/2023 12:08 AM
yes it is giving error like cannot get property processingType on null object
07/20/2023 12:11 AM
07/19/2023 09:34 PM
07/19/2023 09:37 PM
07/19/2023 10:11 PM
I used this in import json in rest connection to call analytics . Is this fine?
07/19/2023 10:17 PM
Hi @Vidhya,
That shouldn’t be the problem but you are taking action on account here so can try it in AccountEntImport json instead of user import json and run account import job and try once.
07/19/2023 10:22 PM
But this is due to rest connection so account import job from database will not work right?
I can find userimportjob(via connection) as suitable one
07/19/2023 10:38 PM
There is job for account import under DATA using Rest connection.
Application Data Import (Single Threaded)
07/19/2023 10:47 PM
I get cannot get property processingType as null object error when i run this job
07/20/2023 12:23 AM - edited 07/20/2023 12:24 AM
If you're running the account import job, then you should have the JSON populated under ImportAccountEntJSON. Seems like that is missing. Please refer to the below developer handbook to construct the JSON for account import.
https://docs.saviyntcloud.com/bundle/REST-v23x/page/Content/Developers-Handbook.htm