Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/01/2024 11:50 PM
Hi! We have use case were we need to create a safe and add the user as a member of it. By default, the service account we used to create the safe is a member, now, our requirement is to remove the service account from the Safe after creation and provisioning. Is there a way to do this using AddAccessJSON? I tried adding another API call on top of provisioning API call to DELETE the service account as the member of the safe. But it looks like it is not being fetched. Any suggestions?
09/02/2024 12:41 AM
Hi @jezzanuena , Above is create account json not add access json
and instead of deleting the service account try to remove it from that safe.
share logs when you try to process it.
09/02/2024 03:09 AM
Hi @NM , thank you for checking in on this. As per CyberArk documentation, removal of the service account from the Safe use DELETE method. Sorry about that. I added the same call in the AddAccessJSON so that, after provisioning the user in to the Safe, we will remove the Service account from it. However, it didn't work.
09/02/2024 06:37 AM
Can you share logs
09/02/2024 06:39 AM
Hi @rushikeshvartak , unfortunately, I can't find any logs about it. For other REST based application, we can see the logs from rest.RestProvisioningService or rest.RestUtilService, but for this app, none hence I can't identify on my end on what's happening.
09/02/2024 06:43 AM
It will be great you can run provisioning job for specific task and share logs for 3 minutes
09/02/2024 07:56 AM - last edited on 09/02/2024 12:03 PM by Sunil
Hi @rushikeshvartak , thank you for your suggestion. Here is the logs:
I think DELETE method cannot be passed in AddAccessJSON. Or?
[This message has been edited by moderator to mask sensitive information]
09/02/2024 08:03 AM
No there is no limitation. Please share logs in text file
09/02/2024 08:27 AM
Sure @rushikeshvartak . Let me get it. For the mean time here is the JSON:
09/02/2024 08:33 AM - last edited on 09/02/2024 12:06 PM by Sunil
Hi @rushikeshvartak, here is the log file. I can't see the DELETE being called here. Hope you can help.
09/02/2024 08:40 AM
It seems you have issue with json (if not share json)
You need to keep Entitlement Type = call name in every call
09/02/2024 08:47 AM
Thank you @rushikeshvartak Will check on that. So I have entitlement types: UserGroups and Users, in this JSON, I need to add 2 users from Users and one group from UsersGroups, should I name the call for Users differently?
09/02/2024 05:56 PM