Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Bulk Account Owner update for AD Accounts

Shreya47
New Contributor III
New Contributor III

Hi team,

We need to update the Owner for multiple AD accounts according to certain AD account attribute (Employee ID is Null). We created an Enhanced Query execution job with 'Insert' operation and the below query, but the job is updating the owner for one account at a time.

SELECT
'3' AS accountowners__OWNERUSERGROUPKEY,
ac.accountkey AS accountowners__ACCOUNTKEY
FROM accountowners ao
right outer join accounts ac on ac.ACCOUNTKEY=ao.ACCOUNTKEY
where ac.customproperty27 is null and ac.ENDPOINTKEY = '1';

where customproperty27 is the Employee ID

 

Could you please check if there is any wrong configuration in this query or please suggest the best practice to update the Account owner in bulk.

3 REPLIES 3

CR
Regular Contributor III
Regular Contributor III

try without join

SELECT
'3' AS accountowners__OWNERUSERGROUPKEY,
ac.accountkey AS accountowners__ACCOUNTKEY
FROM accountowners ao
 join accounts ac on ac.ACCOUNTKEY=ao.ACCOUNTKEY
where ac.customproperty27 is null and ac.ENDPOINTKEY = '1';


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

AmitM
Valued Contributor
Valued Contributor

HI @Shreya47 , best practice is to use Saviynt REST APIs to do that {{url}}/ECM/{{path}}/updateAccount.

Thanks.

Amit

If this answers your query, Please ACCEPT SOLUTION and give KUDOS.

 

rushikeshvartak
All-Star
All-Star

use import sheet

rushikeshvartak_0-1710212980938.png

 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.