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

Enhanced Query Account Owners

Rayomand
New Contributor II
New Contributor II

Hello,
       I am trying to update the rank of service account owners using enhanced query but its giving me the error as in the screen shot .

select
ao.ACCOUNTOWNERKEY as accountowners__primarykey,
'26' as accountowners__RANK
from
accounts a,

endpoints e,
securitysystems ss,
accountowners ao,
users u
where
a.ENDPOINTKEY = e.ENDPOINTKEY
and a.ACCOUNTKEY = ao.ACCOUNTKEY
and u.USERKEY = ao.OWNERUSERKEY
and u.statuskey is not null
and a.ACCOUNTTYPE = 'Service Account'
and a.status in ( 'Manually Provisioned', 1, 'Active' )
and e.SECURITYSYSTEMKEY = ss.SYSTEMKEY
and ss.STATUS = 1
and e.status = 1
and e.ENDPOINTKEY in (14, 12, 10, 11, 59,91) and ao.rank = 1
and a.name in
(
select
tb2.accountName
from
(
Select
tb.AccountName,
tb.ACCOUNTTYPE,
tb.EndpointName,
tb.ServiceAccountName,
tb.AccountStatus,
GROUP_CONCAT(
tb.rank
ORDER BY
tb.rank SEPARATOR ','
) AS concatenated_values
from
(
select
a.name as 'AccountName',
a.ACCOUNTTYPE,
e.endpointname as 'EndpointName',
a.name as 'ServiceAccountName',
a.status as AccountStatus,
ao.Rank
from
accounts a,
endpoints e,
securitysystems ss,
accountowners ao,
users u
where
a.ENDPOINTKEY = e.ENDPOINTKEY
and a.ACCOUNTKEY = ao.ACCOUNTKEY
and u.USERKEY = ao.OWNERUSERKEY
and u.statuskey is not null
and a.ACCOUNTTYPE = 'Service Account'
and a.status in (
'Manually Provisioned', 1, 'Active'
)
and e.SECURITYSYSTEMKEY = ss.SYSTEMKEY
and ss.STATUS = 1
and e.status = 1
and e.ENDPOINTKEY in (14, 12, 10, 11, 59)
) as tb
group by
tb.AccountName,
tb.ACCOUNTTYPE,
tb.EndpointName,
tb.ServiceAccountName,
tb.AccountStatus
having
concatenated_values not like '%26%'
) as tb2
)
group by a.name, e.endpointname, ao.rank

Phase1.jpg

8 REPLIES 8

mahafujkhan1
New Contributor III
New Contributor III

Hi @Rayomand ,

It's not possible to update the accountownerkey in the accountowners table using the Enhance Query.

I am facing the same issue, and you need to find a different way mate to achieve the same.

 

Thanks.

rushikeshvartak
All-Star
All-Star

I am also in same boat. Ended with solution as manual mapping owners weekly basis with actionable report / import sheet


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

CR
Regular Contributor III
Regular Contributor III

@Rayomand  We can't update Constraints in tables ,

you can achieve based analytics report same function :

https://docs.saviyntcloud.com/bundle/EIC-Admin-v24x/page/Content/Chapter17-EIC-Analytics/Managing-An...

 


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Rayomand
New Contributor II
New Contributor II

Do u have an example of how to add a user as an owner to the service account as a default action? also  I cant see the "Primary" and "Secondary" certifiers as options to assign to a user

Rayomand_0-1709877943473.png

 

Its not supported currently use saviynt REST APIs Update Account


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

That's an entire process that will have to be written for  tens of thousands of accounts that will have to be looked at with analytics,  till then the csv bulk upload seems  ok.

🤣


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

Hi @Rayomand ,

You can't set the default action for that. You have to do it manually. I am on the same boat as yours looking for a solution.

Btw do you have Saviynt4Saviynt configured?