Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/07/2024 11:43 AM
Hi,
Issue:
Our client noticed that, all Exchange accounts created have the personal email address as the name. whereas it should be the sAMAccountName.
Fix:
We fixed this issue for future new onboarding user's accounts by generating AccountNameRule in the Endpoint.
Goal:
But our goal is to update existing accounts name with sAMAccountName (systemusername) instead personal email as account name.
What is the solution to fix this issue?
05/07/2024 07:09 PM
You need to fix one time from Exchange.
05/08/2024 06:14 AM
Hi @rushikeshvartak, thanks for your response.
I just wanted to make sure this fix is in Saviynt.
And can you please be more precise or explain in detail?
05/08/2024 09:02 PM
05/10/2024 06:49 AM
Hi Rushikesh,
Is there any possibility to update the existing accountname with sAMAccountName using Enhanced Query Job?
If yes, can you please provide any sample query?
05/12/2024 07:09 PM
You can update in Saviynt but what about target application
Select accountkey as accounts__primarykey,'newsAMAccountName' as accounts__name from accounts where endpointkey=1 and name='accountname_old' limit 1;
05/13/2024 09:18 AM
Hi Rushikesh,
We tried to update the above query for one account as you mentioned but it did not update the sAMAccountName.
You could see in the below screenshot that Total records updated as 0/Zero. But Job ran successfully.
05/13/2024 12:37 PM
@KarthikaMoorti : When you run the select statement in data analyzer are you getting any output? Also I see you have used endpointkey=1 is this matching in your environment? Does you exchange endpoint key is 1?
05/14/2024 07:12 AM
Thanks for your response, Saathvik.
Missed to change the actual endpointkey value.
05/13/2024 03:02 PM
You need to change endpointkey as per your application else use accountkey column
Select accountkey as accounts__primarykey,'newsAMAccountName' as accounts__name from accounts where accountkey=1 limit 1;
get accountkey from url of account when you open it
05/14/2024 07:15 AM
Hi Rushikesh,
Missed to update the actual endpointkey value and now it's working as expected (sAMAccountName got updated as account name)
Now, our challenge is to update multiple exchange accounts (nearly 400) name at a time.
How we can achieve this using Enhanced Query Job?
05/14/2024 08:03 PM
Perform Union
Select accountkey as accounts__primarykey,'newsAMAccountName1' as accounts__name from accounts where endpointkey=1 and name='accountname1_old' union
Select accountkey as accounts__primarykey,'newsAMAccountName2' as accounts__name from accounts where endpointkey=1 and name='accountname_old' union
Select accountkey as accounts__primarykey,'newsAMAccountName400' as accounts__name from accounts where endpointkey=1 and name='accountname_old400'
05/15/2024 06:43 AM
Hi Rushikesh,
Is there is any option to upload all the accounts name (email) to update sAMAccountName uisng .csv file?
Will it perform update action or Insert (as a new account) action?
Also, let us know the only option to perform this update is using Union in Enhanced Query Job in Saviynt?
05/15/2024 07:47 PM
05/16/2024 12:50 PM
Hi Rushikesh,
When we tried to attempt using union in Enhanced Query it throws below error:
05/16/2024 01:11 PM
Share query
05/16/2024 01:54 PM - last edited on 05/16/2024 02:23 PM by Dave
Hi Rushikesh,
Select accountkey as accounts__primarykey,'John.Doe' as accounts__name from accounts where endpointkey=3 and name='johndoe@gmail.com' union
Select accountkey as accounts__primarykey,'Jane.Doe' as accounts__name from accounts where endpointkey=3 and name='janedoe@yahoo.com' union
Select accountkey as accounts__primarykey,'James.Doe' as accounts__name from accounts where endpointkey=3 and name='jamesdoe@gmail.com'
We also tried adding ' , ' ' ; ' instead of union and even tried accountkey instead of endpointkey.
[This post has been edited by a Moderator to remove sensitive information.]
05/16/2024 05:50 PM - edited 05/16/2024 06:21 PM
Unfortunately union is not supported
Alternate workaround
SELECT
accountkey AS accounts__primarykey,
CASE
WHEN name = 'johndoe@gmail.com' THEN 'John.Doe'
WHEN name = 'janedoe@yahoo.com' THEN 'Jane.Doe'
WHEN name = 'jamesdoe@gmail.com' THEN 'James.Doe'
END AS accounts__name
FROM
accounts
WHERE
endpointkey = 3
AND name IN ('johndoe@gmail.com', 'janedoe@yahoo.com', 'jamesdoe@gmail.com') limit 3;
05/17/2024 10:44 AM
Hi Rushikesh,
Thanks for the alternate option using Enhanced Query Job.
But we worked around and completed the task by Unmapping existing Exchange accounts and recreated them with sAMAccountName using .csv file.
Thanks,
Karthika Punyamoorti
05/19/2024 10:23 AM
Please click the 'Accept As Solution' button on the reply (or replies) that best answered your original question.