04/12/2022 01:22 PM
Is it possible to only allow requests for adding or removing access and NOT allow the request for a new account? Customer wants to allow requesting changes to access (entitlements) for existing correlated accounts, but not allow a request for a new account.
Thanks!
Solved! Go to Solution.
04/12/2022 03:07 PM
04/12/2022 03:07 PM
Thanks Sivagami. Can you please confirm what field you are referring to when you say 'remove account config'? Is this the CREATEACCOUNTJSON (for AD system)?
04/12/2022 03:07 PM
Rereading your response Sivagami, I don't think this answers my question. I have enabled the config to not allow a new account if one already exists. What I'm looking to do is NOT allow a request for an entitlement or account for a system where the user does not have any account.
04/12/2022 03:07 PM
04/12/2022 03:07 PM
Something like this in your endpoint access query will fulfil the requirement.
where users.userkey in (select userkey from user_accounts where accountkey in (select accountkey from accounts where endpointkey =<insert your endpointkey here> and accounts.status in ('Manually Provisioned','Active','1')))
04/12/2022 03:07 PM
Thanks SIvagami, I pulled this same query from the documentation. I'm trying to add
and users.userkey = '${users.userkey}'
to the end of the query to make it user-specific, but it's not limiting for the user the request is for. None of the following have worked, can you please confirm the syntax?
'${user.userkey}'
'${user.id}'
'${requestee.id}'
04/12/2022 03:07 PM
disregard, I found it. This is working perfectly now, thank you!!!
04/12/2022 03:07 PM
Hello Chris,
Could you provide an update here as to what was done to fulfill your requirements for the benefit of the community ?
Thanks,
Regards,
Avinash Chhetri
04/12/2022 03:07 PM
Sure thing, below is the query I added to the Access Query field. It works beautifully, thanks for your help!
WHERE users.userkey in (select userkey from user_accounts where accountkey in (select accountkey from accounts where endpointkey in (<endpointkey>) and accounts.status in ('Manually Provisioned','Active','1')))