Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/30/2024 05:17 AM
Hi Team,
In the user creation form, we are trying to auto populate the values of department and company name from manager account.
Requestor should be Manager by default and it should be editable, Based on the value of manager field the department and company name attributes must be auto populate,
When we change the manager name, the attributes still showing the same old values of requestor.
Queries we are using currently
Manager:
Values
select distinct username as ID from users
Default Values
select username as ID from Users where userkey = ${requestor}
Company:
Default Values
select COMPANYNAME as ID from Users where userkey = ${requestor}
Department:
Default Values
select DEPARTMENTNAME as ID from Users where userkey = ${requestor}
Please suggest us what changes can we make to fulfill our request.
Thank you.
Solved! Go to Solution.
07/30/2024 05:58 AM
Hi @Ratna , what do you mean by changing manager is it a field in form or you make the change in user profile?
07/30/2024 06:13 AM
Hi NM,
We are changing it in user creation form.
Changing manager name in the sense that, In some cases, there might be a chance that, we change it to some other person before user submitting the creation form. Even though, it is taking the value 'requestor', by default.
07/30/2024 06:42 AM
Hi @Ratna yes it will as you have use requestor binding variable.
If requestor is the new manager it will pick data from his/her peofile
07/30/2024 06:47 AM
Hi @NM ,
Will it be possible to auto populate the values of department and company name from manager account. irrespective of manager value either requestor or someone else (who is not the requestor)?
07/30/2024 06:50 AM
Yes.. but only thing is whose manager are you trying to get .. as you are trying to create a new user profile.
07/30/2024 08:36 AM
Hi @Ratna ,
By your above use case, you have a parent dynamic attribute name 'manager'.
Department and Company are two child dynamic attributes.
Change you need to do?
Company: Default Values
select COMPANYNAME as ID from Users where username= ${Manager} (Here Manager is dynamic attribute name)
Department: Default Values
select DEPARTMENTNAME as ID from Users where username= ${Manager} (Here Manager is dynamic attribute name)
If this helps, please consider selecting Accept As Solution and hit Kudos
07/31/2024 12:13 AM
07/30/2024 08:39 PM
Use above Queries and add Mapp