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

REST Connector using userAccount.get

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on September 30 2021 at 16:53 UTC

Hi,


When using the userAccount.get function in a REST Connector.

 

userAccount.get("Active Directory").customproperty3

 

It works great when the user has a single account in the requested endpoint.  The above will return customproperty3 from the user's account object in the Active Directory endpoint.


It is not clear to me what happens if the user has two accounts in the endpoint. Is there a way to pass additional criteria in the function or do the results come back as an array that can be inspected with logical operators?


Thank you in advance. 



This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.
3 REPLIES 3

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 5 2021 at 00:34 UTC

Chris,


Are you using this in any specific section of the REST connector ? for e.g  UpdateAccountJSON  ?




Reards,

Avinash Chhetri

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 5 2021 at 16:21 UTC

I am using this in the AddAccessJSON section. 


Thanks,

Chris

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.

Community_User
Saviynt Employee
Saviynt Employee
Originally posted on October 12 2021 at 20:48 UTC

Hi Chris,


Currently I do not think you will get an array if the user has multiple accounts. I believe it would get you an account, in a random order.





Regards,

Avinash Chhetri

This message was previously posted on Saviynt's legacy forum by a community user and has been moved over to this forum for continued exposure.