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

Auto populate the department and company name from manager account

Ratna
New Contributor II
New Contributor II

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.

8 REPLIES 8

NM
Honored Contributor II
Honored Contributor II

Hi @Ratna , what do you mean by changing manager is it a field in form or you make the change in user profile?

Ratna
New Contributor II
New Contributor II

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.

NM
Honored Contributor II
Honored Contributor II

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

Ratna
New Contributor II
New Contributor II

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)?

NM
Honored Contributor II
Honored Contributor II

Yes.. but only thing is whose manager are you trying to get .. as you are trying to create a new user profile.

PremMahadikar
All-Star
All-Star

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?

  1. Make sure you have configured, Refresh or Mapping under 'What action to perform when Parent attribute changes?' configuration under parent attribute (i.e. Manager in your case)PremMahadikar_0-1722353634569.png

     

  2. Company: Default Values
    select COMPANYNAME as ID from Users where username= ${Manager} (Here Manager is dynamic attribute name)

  3. Department: Default Values
    select DEPARTMENTNAME as ID from Users where username= ${Manager} (Here Manager is dynamic attribute name)

  4. If for 2 and 3 DA, parent attribute is not configured, do add this below configuration. (Here Manager is dynamic attribute name which would consider here as parent) PremMahadikar_1-1722353737118.png

     

 

If this helps, please consider selecting Accept As Solution and hit Kudos

Ratna
New Contributor II
New Contributor II

Hi @PremMahadikar 

Thank you for the solution. It worked perfectly.

Ratna.

rushikeshvartak
All-Star
All-Star
  • Use below queries
    • Manager:
      • Values
        select distinct username as ID from users where statuskey=1
      • Default Values
        select username as ID from Users where userkey = ${requestor}rushikeshvartak_2-1722397160880.png

         

  • Company:
    • Values
      select COMPANYNAME as ID from Users where userkey = ${DA_Manager}
    • Default Values
      select COMPANYNAME as ID from Users where userkey = ${requestor}
    • rushikeshvartak_0-1722397132952.png

       

    •  
  • Department: 
    • Values
      select COMPANYNAME as ID from Users where userkey = ${DA_Manager}
    • Default Values
      select DEPARTMENTNAME as ID from Users where userkey = ${requestor}
    • rushikeshvartak_1-1722397137452.png

       

 

Use above Queries and add Mapp


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