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

How to populate a default value for dynamic attribute of an endpoint at account request?

alc
Regular Contributor
Regular Contributor

Hello,

We created a dynamic attribute "ownerId" for an endpoint, when an account request is sumitted on this endpoint, on the account request form, we want to set the default value of ownerId to be the requestee's username attribute value.

How can we define this default value on dynamic attribute definition and allow requester to change/edit it when necessary.

Thanks

ALC

6 REPLIES 6

rushikeshvartak
All-Star
All-Star

add same query in default value for new account. In case of modify account accounts column under dynamic attribute is used so store value in accounts custom property.


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

alc
Regular Contributor
Regular Contributor

Hello Rushikesh,

what do you mean by add same query? could you please have a sample query for this purpose?

@alc What ever the query you have used in DA value ,use that in default value field.

use below sample query  in value and default field to show requestee's username attribute

select username as ID from users where userkey in (${requestee})

 

SumathiSomala_0-1701262764835.png

In ARS PAGE:

SumathiSomala_1-1701262795536.png

 

If this reply answered your question, please accept it as a solution and kudos.

 

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

alc
Regular Contributor
Regular Contributor

Hello Sumathi,

Thank you very much with such detail information. it works this way, However, I want the attribute type to be String so the requester can change it if the default value is not applicable. with Single Select, there is noway to edit the value.

Any idea with a String type but got the default value with username?

@alc  it's not possible to populate username dynamically in string type as a default value

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

It needs to be SQL query only , You can't auto populate on String type 

You can show only 1 value and keep mandatory so no one will change.


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