Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Issue with owneronterminate Feature - AD Update Account Task Not Triggering

Chirag_Gupta
New Contributor III
New Contributor III

Hello Everyone,

I am currently utilizing the owneronterminate feature in Saviynt, which allows me to change the manager during the user termination process. While I am able to successfully change the manager in Saviynt, I would like to also trigger an AD update account task when the manager changes. However, it appears that this task is not triggering as expected.

Could you please assist me in troubleshooting this issue? Any guidance on how to ensure that the update account task triggers correctly would be greatly appreciated.

Thank you!

Chirag Gupta

18 REPLIES 18

rushikeshvartak
All-Star
All-Star
  • Currently ownership transfer does not trigger task in target.
  • can you share current rule configs

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Amit_Malik
Valued Contributor II
Valued Contributor II

Hi @Chirag_Gupta , owner on terminated only updates it in Saviynt.

You can have a discrepancy report created where attributes of user and address account are out of sync, and create update account tasks. That will sync user attributes with AD account 

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

Is it possible to directly trigger an update account task when the manager changes in Saviynt through Owneronterminate?

If not, we've already created the out-of-sync report for AD, how can I generate an update account task based on that report?

@rushikeshvartak @Amit_Malik 

Thanks,

Chirag Gupta

Amit_Malik
Valued Contributor II
Valued Contributor II

select distinct a.name,a.accountkey as acctKey, endpointkey, 'updateAccount' as Default_Action_For_Analytics from accounts a,user_accounts ua,users u,arstasks at where ua.userkey=u.userkey and ua.accountkey=a.accountkey and a.endpointkey='2' and a.endpointkey=at.endpoint and u.customproperty10 in

 

You can use above sample query and change it to you need. 'updateAccount' as Default_Action_For_Analytics, this part will create a update account task.

 

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

I have configured the runtime analytics. How can I trigger the update account task now?

SELECT
DISTINCT u.username,
CONCAT(
m.preferedfirstname, ' ', m.lastname
) as managername,
SUBSTRING(
a.customproperty21,
4,
LOCATE(',', a.customproperty21) -4
) as 'AD Managername',
a.name,
a.accountkey AS acctKey,
a.endpointkey,
'updateAccount' as Default_Action_For_Analytics
FROM
accounts a
JOIN user_accounts ua ON a.accountkey = ua.accountkey
JOIN users u ON ua.userkey = u.userkey
JOIN users m on (u.owner = m.username)
JOIN arstasks at ON a.endpointkey = at.endpoint
WHERE
a.endpointkey = '2'
AND CONCAT(
m.preferedfirstname, ' ', m.lastname
) != SUBSTRING(
a.customproperty21,
4,
LOCATE(',', a.customproperty21) -4
)
AND a.status IN (
1, 'active', 'manually provisioned'
)
and u.username between 00400101
and 00400125;

Amit_Malik
Valued Contributor II
Valued Contributor II

1) create analytics using sql query , using 'updateAccount' as Default_Action_For_Analytics

Amit_Malik_0-1727872284686.png

2) Create a Job as below. make sure to check the box that executes default action in query and creates task

Amit_Malik_1-1727872441443.png

make sure you have properly defined category and subcategory. You can create new subcategory also just for this report

 

 

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

There is no option available for Execute default action as analytics, Where can i find this option?

Amit_Malik
Valued Contributor II
Valued Contributor II

2) Create a Job as below. make sure to check the box that executes default action in query and creates task

You need to create a new Job. Job type is RunAllAnalyticsJob.

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

I created the job with below configs, and ran the job but still update account tasks for AD did not trigger.

Chirag_Gupta_0-1727873756987.pngChirag_Gupta_1-1727873772974.png

Below is my query

SELECT
DISTINCT u.username,
CONCAT(
m.preferedfirstname, ' ', m.lastname
) as managername,
SUBSTRING(
a.customproperty21,
4,
LOCATE(',', a.customproperty21) -4
) as 'AD Managername',
a.name,
a.accountkey AS acctKey,
a.endpointkey,
'updateAccount' as Default_Action_For_Analytics
FROM
accounts a
JOIN user_accounts ua ON a.accountkey = ua.accountkey
JOIN users u ON ua.userkey = u.userkey
JOIN users m on (u.owner = m.username)
JOIN arstasks at ON a.endpointkey = at.endpoint
WHERE
a.endpointkey = '2'
AND CONCAT(
m.preferedfirstname, ' ', m.lastname
) != SUBSTRING(
a.customproperty21,
4,
LOCATE(',', a.customproperty21) -4
)
AND a.status IN (
1, 'active', 'manually provisioned'
)
and u.username between 00400101
and 00400125;

 

Amit_Malik
Valued Contributor II
Valued Contributor II

SELECT
a.name,
a.accountkey AS acctKey,
a.endpointkey,
'updateAccount' as Default_Action_For_Analytics
FROM
accounts a
JOIN user_accounts ua ON a.accountkey = ua.accountkey
JOIN users u ON ua.userkey = u.userkey
JOIN users m on (u.owner = m.username)
JOIN arstasks at ON a.endpointkey = at.endpoint
WHERE
a.endpointkey = '2'
AND CONCAT(
m.preferedfirstname, ' ', m.lastname
) != SUBSTRING(
a.customproperty21,
4,
LOCATE(',', a.customproperty21) -4
)
AND a.status IN (
1, 'active', 'manually provisioned'
)
and u.username between 00400101
and 00400125;

 

a.endpointkey = '2' ---- Find out the endpoint key of AD endpoint from endpoints table. This is a sample I shared , your AD might not have key as 2.

Before running the job , check in dataanalyzer if query is returning anything

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

Endpointkey is also 2 for me, and the query is functioning correctly in the data analyzer. I've updated the query in analytics and executed the job, but the update account task still hasn't been triggered.

Chirag_Gupta_0-1727879816705.png

 

Amit_Malik
Valued Contributor II
Valued Contributor II

Amit_Malik_0-1727881450427.png

in the screenshot you shared, I have highlighted "Allowed Action", remove accept, revoke etc,... add update Account. Only Update account.

Amit_Malik_1-1727881590467.png

 

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

Chirag_Gupta_0-1727882646999.png

I updated the allowed action to include "update account" and ran the job, but the update account task still hasn't been triggered.

Thanks,

Chirag Gupta

Amit_Malik
Valued Contributor II
Valued Contributor II

Select save data and not save in file. context as none.

Go to analytic history , search for your analytic and send below screen shots

Amit_Malik_0-1727883903200.png

click on conflicted count or view history and 

Amit_Malik_1-1727884006952.png

 

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

Chirag_Gupta_0-1727884490170.pngChirag_Gupta_1-1727884583916.pngChirag_Gupta_2-1727884612610.png

 

Hey Malik, thank you for your help! It’s working now, and I really appreciate your support.

Dave
Community Manager
Community Manager

@Chirag_Gupta - What is the solution? Either click on the "Accept As Solution" button on the reply that best answered your question, or provide the solution below to help others who may have a similar question. 

Thank you,
Dave

Chirag_Gupta
New Contributor III
New Contributor III

Hey Dave, I've already selected the reply as 'accept as solution' that helped me resolve this issue.