16
Views
3
Comments
Solved
All Users on app

Hello!

I am using GetUsers aggregate to get all the users of the app, however I am getting all the environment users including those not related to the current app. Any idea why this is happening?

2026-01-28 16-57-48
Mihai Melencu
Champion
Solution

Hey @Helga Afonso ,

Please have a look at this post; it seems to cover the same issue you're facing: How to fetch application specific users from System users table?

2024-05-14 06-49-08
Karnika-EONE

Hi @Helga Afonso

     In system User Table we have attribute called "External Id"..so you can use that attribute by:

       1.while saving your Users in that app,you can save GetOwnerEspaceIdentifier()  in External Id.

       2.By doing filter "ExternalId<>null".you can retrieve that Users.

Hope it helps.

Thanks

Karnika

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

Hi,

Users are NOT assigned to Apps in OutSystems 11.

Instead, users are assigned roles, either directly, or indirectly via User groups.

You need to join the system entity User_Effective_Role (which is a database view over the user group role and user role entities), to filter on the roles that you have defined in your application module(s).

Regards,

Daniel

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