I am looking 2 APIs
1) API to delete an User from OutSystem User management, irrespective he has role or not.
2) API to delete an user from Outsystems lifetime
I tried looking here : https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/Users_API, User_DeleteIfNoRoles API does not meet my requirement.
Hi Rajkiran,
I found this article link that may helps you.
Khuong
I'm assuming that you're looking to trigger these actions outside of your OutSystems environment hence asking for an API (Otherwise the suggestion below will still be applicable just without exposing that functionality in a custom API) .
For your first point, there are a couple options:
For your second point, Lifetime's v2 API has a user endpoint however the deletion of users is not within the scope of its actions.
One last thing to note is that if OutSystems doesn't expose the exact functionality you're looking for ootb than there might be a good reason for it. I'd recommend researching OutSystem's suggestions and security best practices on the matter before delving into solution mode :)
Regards,
Ossama
In addtion to Ossama's reply. Instead of User_Role Entity you should refer to User_Effective_Role Entity, Because it's include the roles thease are inherit from Groups.
For question #2, Is "User from Outsystems lifetime" means IT user? It's very different to end user, as Ossama said,
You should consider the security best practices. Is it really need to delete IT user progmactlly?
Yes, whenever user is decommissioned from our Company AD Group or employee leaves the organization, I want to delete that use from LifeTime via from automated job.