Owner list is empty in Update Account Request

Dalalsaleh888
New Contributor
New Contributor

we are integrating AD non-personal account life cycle management into Saviynt and we face some issues in the update account process:

1) the owner update didn't overwrite what is existent in AD. when the user selects a new owner and submits the request, both owners visible in Saviynt and AD contain the first owner (not the new one only).

2) for a generic account update account, the owner list is empty.

Dalalsaleh888_0-1689088767244.png

Let me know if you need further details.

 

8 REPLIES 8

pmahalle
Valued Contributor II
Valued Contributor II

Hi @Dalalsaleh888 ,

1. Can you provide update Account json you are using for managing non-personal account.

2. Can you give more details about this.


Regards,

Pandharinath Mahalle(Paddy)
If this reply answered your question, please Accept it As Solution to help others who may have a similar problem.

we are facing issue with generic account.

 

CREATEACCOUNTJSON:

{
"sAMAccountname": "${if (accttype.equals('TestAccount'))
{ if (task.accountName.startsWith('tst-'))
{task.accountName}
else
{'tst-'+task.accountName}
}
else {
if(accttype.equals('GenericAccount'))
{ if (task.accountName.startsWith('#'))
{task.accountName}
else
{'#'+task.accountName}
}
else if(accttype.equals('ServiceAccount'))
{ if (task.accountName.startsWith('svc-'))
{task.accountName}
else
{'svc-'+task.accountName}
}
else
{task.accountName}
}}",
"displayName": "${dispname}",
"LogonWorkstations": "${if (accttype.equals('TestAccount') || accttype.equals('GenericAccount')){complist}}",
"userAccountControl":"${if (accttype.equals('ServiceAccount')){66048} else {512}}",
"Pager": "${if (accttype.equals('ServiceAccount')){appci}}",
"Department": "${if (accttype.equals('ServiceAccount')){suppdl}}",
"Description" : "${description}",
"Title":"${ServiceAccountOwnerMap.get('USEROWNERS').get('ALL').collect{it}[0].customproperty50.toString()}" ,
"manager":"${ServiceAccountOwnerMap.get('USEROWNERS').get('ALL').collect{it}[0].customproperty50.toString()}" ,
"userprincipalname": "${if (accttype.equals('TestAccount') && !(task.accountName.startsWith('tst-')))
{'tst-'+task.accountName+'@dev.bhicorp.com'}
else {
if(accttype.equals('GenericAccount') && !(task.accountName.startsWith('#')))
{'#'+task.accountName+'@dev.bhicorp.com'}
else if(accttype.equals('ServiceAccount') && !(task.accountName.startsWith('svc-')))
{'svc-'+task.accountName+'@dev.bhicorp.com'}
else
{task.accountName+'@dev.bhicorp.com'}
}}",
"objectclass":["top","person","organizationalPerson","user"]
}

 

UPDATEACCOUNTJSON:

{
"manager":"${ServiceAccountOwnerMap.get('USEROWNERS').get('ALL').collect{it}[0].customproperty50.toString()}"
}

pmahalle
Valued Contributor II
Valued Contributor II

Can you try below:

"manager" : "${if((ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.customproperty50.toString()}[0])!=null && (ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.customproperty50.toString()}[0])!=''){ServiceAccountOwnerMap.get('USEROWNERS').get('1').collect{it.customproperty50.toString()}[0]}}"


Regards,

Pandharinath Mahalle(Paddy)
If this reply answered your question, please Accept it As Solution to help others who may have a similar problem.

pmahalle
Valued Contributor II
Valued Contributor II

Hi @Dalalsaleh888 ,

Is above provided expression working fine or facing any issue?


Regards,

Pandharinath Mahalle(Paddy)
If this reply answered your question, please Accept it As Solution to help others who may have a similar problem.

Please ignore issue #1 .. we are just unable to see the owner list in the update process... what is the solution for this?

the manager mapping we have in update account json works fine with other types of non-personal account.

which part of if else is not working as expected ?

Dalalsaleh888
New Contributor
New Contributor

The type of account where the owner list is not visible during the update process is a "generic account that defines in if statement as start with #"

 

So, to answer your question it could be the mapping of the manager attribute.

 

Dalalsaleh888_0-1689088767244.png