Create IT Users Dynamically from Code

Hi All,

I have requirement where I need to add users and assign IT User roles (Service Center User roles) to them dynamically from the code. How can this be done? 

I have seen in the database that the Service Center Users are also present in the Users Table. Their tenant id is 1. But i couldn't find in the database where their roles (like Developer etc) are stored or how can I provide Service center Role to any user.


Regards,

Shounak


Take a look at the docs for the Lifetime Services API. Should be what you need:

https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/LifeTime_Services_API

Hi Shounak Devbhuti,

I think this is similar to the below post .Please have a look to my reply .

https://www.outsystems.com/forums/discussion/46740/is-there-a-way-to-create-grant-user-roles-access-dynamically/

Hope it will be helpful.

:)

I'm facing the same problem.


I know that there are web services from LifeTime that can accomplish that. But if I don't have LifeTime in my enviroment, how can I accomplish that?


I tried changing the UserProvider to ServiceStudio and using the Create_user(), but that did not worked. In service Studio, I can see the user in Users list, but I cannot access it, as I get the error: "User Not available: The User you are are trying to access is not available. It might have been deleted since your last access."

Hi Michelangelo, you would need to install lifetime components in order to be able to manipulate IT operations data, like SC users.

João Melo wrote:

Hi Michelangelo, you would need to install lifetime components in order to be able to manipulate IT operations data, like SC users.

By managing the developer and user_developer tables I was able to get the same result as I would get by adding it manually from the Service Center, but I still can't pass into the User_login action.


Glad to know you've solved it. And thanks for sharing. It will definitely help other people.