324
Views
6
Comments
Solved
Managing Users from inside an Application
Question
Application Type
Reactive
Service Studio Version
11.53.18 (Build 61343)

Hello, 

I want to manage users and the groups they belong to from inside an outsystems developed application.  My application is built as a reactive app and the only inhouse examples I have are traditional; so I cannot easily use them.  I have created screens to list users of the app, users who do not have the app, and the groups of the app that a user is assigned to. 

What I need to accomplish is changing the users groups on screen (easy enough) and then send those updates back to the user, role, and user_role tables (I know this is what outsystems calls the datasources).  It seems like this should be a simple operation with Outsystems, but I am not finding anything simple to explain how to make this happen.

We are using the Microsoft Login Connector Reactive; the demo does not show me how to do what I want.

I found the following, but it is from 2011, which also does not meet my need exactly.  https://www.outsystems.com/forums/discussion/7399/how-to-manage-users-and-roles/  

Any help is appreciated, even pointing me to more articles.

Thanks.

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP
Solution

Hi,

Why does the Users app of OutSystems (as described in the link you shared) not fill your need?

This is the official documentation:

https://success.outsystems.com/Documentation/11/Developing_an_Application/Secure_the_Application/End_Users/Access_the_Users_application

This is the app provided by OutSystems to define users, groups, userroles and group users and roles.

Furthermore it allows you to reset passwords, remove any lock on users that failed to login within 3 attempts and set users active or inactive.

there are examples in the Forge of custom made user management also in reactive:

https://www.outsystems.com/forge/component-overview/13511/user-management-reactive

And also videos about how to manage users of create your own user management:

https://youtu.be/eB5XJ_NiUtM

https://youtu.be/cUqt0tD_Pi8

Regards,

Daniel 

UserImage.jpg
Bryan Richter
Solution

I marked the first message as the answer, because that is where I located what I need.  What I needed was the user module information which is mentioned in the first video.  Nothing that I used was specifically mentioned, but the video led me to the solution.

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP
Solution

Hi,

Why does the Users app of OutSystems (as described in the link you shared) not fill your need?

This is the official documentation:

https://success.outsystems.com/Documentation/11/Developing_an_Application/Secure_the_Application/End_Users/Access_the_Users_application

This is the app provided by OutSystems to define users, groups, userroles and group users and roles.

Furthermore it allows you to reset passwords, remove any lock on users that failed to login within 3 attempts and set users active or inactive.

there are examples in the Forge of custom made user management also in reactive:

https://www.outsystems.com/forge/component-overview/13511/user-management-reactive

And also videos about how to manage users of create your own user management:

https://youtu.be/eB5XJ_NiUtM

https://youtu.be/cUqt0tD_Pi8

Regards,

Daniel 

UserImage.jpg
Bryan Richter

Daniƫl Kuhlmann,

Thank you for the extra details in your response.  When I get the chance I will review them and hopefully that will provide me the answers that I seek.

We are using the Microsoft Connector so our users are coming in from Active Directory (with their AD passwords).  We want certain app admins to be able to add users to the app or edit group membership, but that is all.

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Hi,

Ok now you share new information that would have been very useful to share in your original question. If you use a specific Forge component and have a question about it, then It helps to mention the Forge component too on your original request.

I guess you mean Azure AD and not AD, correct?

When you use the Microsoft Connector, there is a feature to automatically map the groups on an Azure account to OutSystems roles.

Also, the Microsoft Connector automatically can create and maintain the OutSystems users for you. 

There should be no need to manually maintain OutSystems Users accounts, your Azure AD should be the single source of truth. The OutSystems users are just a form of cache you need to handle OutSystems authentication, authorization and sessions, as well as and to fulfil OutSystems licence requirements.

Kind regards,

Daniel

UserImage.jpg
Bryan Richter

So this is the second time I mentioned the Microsoft Connector and I provided no new information about the problem.   

I will say that your responses give me the impression that you did not read my "question."   

I appreciate the information that you provided.  It appears that the YouTube videos have the information that I require.


2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

You are right, and I was wrong you did mention in your first question indeed the Microsoft Login connector.

UserImage.jpg
Bryan Richter
Solution

I marked the first message as the answer, because that is where I located what I need.  What I needed was the user module information which is mentioned in the first video.  Nothing that I used was specifically mentioned, but the video led me to the solution.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.