126
Views
16
Comments
Solved
How to assign a End-User Group programmatically?
Application Type
Reactive

How could we assign a User to an End user group by ODC Studio? 

Do we need to go to the ODC Portal every time a user registers in the main application to add them to a role? 

I don't see this as a good option.

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

No official communication, but what I hear talking about is that the API will released still in 2024.

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

Hi,

Add users to a group needs to be done in the portal. Granting roles can be done with the built in function in every role.

A user management API is on the roadmap, but no Publix release date is available.

Regards,

Daniel

2025-03-12 11-13-22
Johnes Silva


I understand, a shame. 

What would be the best way to automatically give several roles to a user in your registration flow?

Export a service action from all applications with Grant<name>Role? 

And when we create another application in the future, how can we assign the role of that application to users? 

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

Hi Johnes,

I understand the frustration, we are faces with the same issues. 

Your workaround is one of the ways to do it right now, it isn't pretty as you have to change code for every new role, but it works.

Let us hope when the User Management API because publically available, we can build proper solutions for this.

Regards,

Daniel

2025-03-12 11-13-22
Johnes Silva


That's right, Daniel. In the documentation itself they do not recommend this, but they did not provide an alternative for this type of scenario. The strange thing is that this is quite important and no good solution has been implemented so far. 

Thanks for the answer!

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

You still see that critical features are missing in ODC. But OutSystems is working hard on them. The OutSystems user management API is one of those features, which is much awaited by many of us.

2024-11-05 11-28-22
Sunil Rajput

Hii Johnes Silva 

I am sharing sample oml kindly refer this oml then assign a User to an End user 

Thanks Sunil


SelfRegistrationSample.oml
2025-03-12 11-13-22
Johnes Silva

I can't open this oml. 

Can you send prints of the implementation?

2024-11-05 11-28-22
Sunil Rajput

Hii

 I am sharing the screen short then select file choose the OML


WhatsApp Image 2023-12-29 at 4.00.59 PM.jpeg
2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Now sure what is going on with your OML but it indeed gives the error message shared before in this discussion.

2025-03-12 11-13-22
Johnes Silva


Yeah, I keep getting the same error.

2021-07-21 10-26-16
Vani Mankad

Hi @Daniƫl Kuhlmann ,

Is there any udpate on use management API ? Is there a way to assign end user group programmatically ?

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

No official communication, but what I hear talking about is that the API will released still in 2024.

2021-07-21 10-26-16
Vani Mankad

Hi @Daniƫl Kuhlmann ,

That's strange !
I see chatgpt outsystems bot giving answer for this but i tried to search on the mentioned content and there is no info so far in documentation.


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

Well I hope I am not going to disappoint you, but you cannot trust the ChatGPT output. There is no inteligence in ChatGPT, it just predicts the next word in a sentence.

In this case ChatGPT is wrong.

2021-07-21 10-26-16
Vani Mankad

Hi @Daniƫl Kuhlmann ,

That's right ! That is the reason i searched related content on official documentation and could not find it so wanted to bring this here so that community do not get mislead & access the right information.

Off course ! Chatgpt is better to show some direction ( sometimes mislead too) but own research is must after that !

I wait for the update here then !

Thank you !

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

ChatGPT is mixing O11 capabilitites in questions about ODC, very confusing.

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