and more in a single search tool across platforms. Read the announcement here. |
03/06/2024 11:01 PM
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
03/06/2024 11:39 PM
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.
03/06/2024 11:47 PM
I am also in same boat. Ended with solution as manual mapping owners weekly basis with actionable report / import sheet
03/07/2024 03:38 AM
@Rayomand We can't update Constraints in tables ,
you can achieve based analytics report same function :
03/07/2024 10:07 PM
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
03/07/2024 10:09 PM
Its not supported currently use saviynt REST APIs Update Account
03/07/2024 10:19 PM
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.
03/07/2024 10:22 PM
🤣
03/07/2024 10:17 PM
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?