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

Setting Mandatory/Optional Attributes on user form on basis of Another Attribute

SanjeetaRao
Regular Contributor
Regular Contributor

Hi,

The requirement is to set Mandatory/Optional Attributes on user form on basis of Another Attribute.

For Example, If I select Employee type as External then a different set of attributes have to show up as mandatory. Similarly, if I select Employee type as Internal then a separate set of attributes have to show up as mandatory.

IS this possible?

16 REPLIES 16

rushikeshvartak
All-Star
All-Star

Yes its possible with action string similar like HIDE & SHOW attribute name are REQ and NREQ

https://forums.saviynt.com/t5/identity-governance/register-user-form-show-hide-attributes/m-p/66034#... 

https://forums.saviynt.com/t5/identity-governance/is-it-possible-to-make-vendor-manager-field-as-man... 


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

SanjeetaRao
Regular Contributor
Regular Contributor

I gave this Action String in Employee type:

SanjeetaRao_0-1717494342639.png

Logic: We want date of Birth to be mandatory when employee type is I and optional when employee type is E.

Also, We made Employee type Parent attribute of Date of Birth:

SanjeetaRao_1-1717494461324.png

It is still not working.

Any other changes that we might be missing?

Avoid spaces in attribute name 


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

Should we then user customproperty instead of Attribute name?

SanjeetaRao_0-1717508826809.png

customproperty21 instead of Date of Birth?

Tried with customproperty21 as well, did not work.

Is there anything else we migt be missing?

Keep attribute name as DOB and label as Date of Birth


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

Tried to use DOB as well. Still not working.

SanjeetaRao_0-1717574020574.png

 

Does your attribute name is DOB

make attribute name as below

rushikeshvartak_0-1717591081190.png

 


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

PremMahadikar
All-Star
All-Star

Hi @SanjeetaRao ,

To be more clear:

FYI: Action String doesn't depend on 'Parent Attribute' or 'What action to perform when Parent attribute changes?'

Below is working example:

REQ###orgid###2___NREQ###orgid###1

Orgid here is the Attribute Name and not the attribute label.

PremMahadikar_0-1717583223656.png

In User form:

  • If 1 is selected

    PremMahadikar_1-1717583274070.png

     

  • If 2 is selectedPremMahadikar_2-1717583310204.png

     

Please check, if you are missing something.

 

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

Hi @PremMahadikar 

We are Using Attribute nae itself and not the attribute label. Still not working.

Could you please suggest.

@SanjeetaRao , please share complete dynamic attribute of parent (where you have mentioned action string) and child screenshot (I believe here its DOB).

 

SanjeetaRao
Regular Contributor
Regular Contributor

Hi @PremMahadikar 

Please find the screenshot of Employeetype (parent attribute)

SanjeetaRao_0-1717595312263.pngSanjeetaRao_1-1717595352999.png

SanjeetaRao_6-1717595627470.png

 

SanjeetaRao_2-1717595379207.png

Screenshot of DOB (Child DA)

SanjeetaRao_3-1717595505528.pngSanjeetaRao_4-1717595522753.pngSanjeetaRao_5-1717595539604.png

 

@SanjeetaRao ,

I don't see any issue. Can you delete both and recreate them with below exact configurations. 

Dynamic Attribute A:

Attribute Nameemployeetype
Attribute LabelEmployee Type
Attribute GroupUser Employee Infromation
Order Index14
Attribute TypeEnum
ValuesInternal,External
Action stringREQ###DOB###Internal___NREQ###DOB###External___
Required, Edit on Create, Edit on UpdateCheck

Note: Don't mention user column at the first. Try to check without it. Then add later

Dynamic Attribute B:

Attribute NameDOB
Attribute LabelDate Of Birth
Attribute GroupPersonal Infromation
Order Index3
Attribute TypeDate
Edit on Create, Edit on UpdateCheck

Note: Don't mention user column at the first. Try to check without it. Then add later

 

This should work. Its working for me. 

If this doesn't work, please raise a Freshdesk ticket.

 

Please consider selecting Accept As Solution and hit Kudos

Hi @PremMahadikar ,

This is working for us now. 

One last question, if we need to have multiple dependent vales then we have to update it like below with comma?

REQ###DOB###Internal___NREQ###DOB###External___,REQ###Manager###Internal___NREQ###Manager###External

@SanjeetaRao ,

Perfect!

Don't add comma!

  • ___ (three underscores) are used to add more condtions

REQ###DOB###Internal___NREQ###DOB###External___REQ###Manager###Internal___NREQ###Manager###External___

 

Please select Accept As Solution (for the reply/replies which helped your question) and give Kudos

Parent Attribute is wrong under DOB attribute - it should be Employee Type.

Please avoid spaces in attribute names 


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