152
Views
7
Comments
Users added in ODC User and Access Management API cannot sign in
Question

I am in the process of moving an application from one ODC environment to another. Helpfully, OutSystems has provided an API client to GET users from the old environment and to POST them into the new environment. When I map these new users, using the "/api/identity/v1/users/bulk" endpoint, I do it like this:

Name: (Name)
Email: (Email)
IsActive: True
PhotoURL: NullIdentifier()
AddToBuiltInIdentityProvider: True

I can now see the new users in the Users tab of the ODC portal, they are set to active and I can give them roles. The problem is that these new users cannot log in, or change their passwords. When they try to click on the change password in the login screen they get the generic error "An error has occured, please try again later". What am I doing wrong and how can I fix this?


2022-12-22 10-00-39
Beatriz Sabino

Hi Wouter,

What error is logged in the ODC Portal when a user tries to log in?

UserImage.jpg
Wouter Brouwers

Hi Beatriz, 

Thank you for your question. The error is this:

OS-BERT-MAIL-61110 - Error executing action The SMTP server authentication failed, ensure the username and password information is correct in Portal's Email Configurations. 535: 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator. [FR4P281CA0015.DEUP281.PROD.OUTLOOK.COM 2025-03-24T11:34:29.830Z 08DD6A048B9FD2E9] 

2022-12-22 10-00-39
Beatriz Sabino

It seems the email SMTP server isn’t configured correctly. Please ensure it’s set up properly in the ODC Portal.

If that doesn’t resolve the issue, the error code 535: 5.7.139 typically indicates you're using Microsoft 365 or Azure for your email services. I’ve found some posts that could help you resolve the issue:


UserImage.jpg
Wouter Brouwers

Okay, so I spent some time setting up the email server, but it turns out the new users I made with the API have not been saved to the OutSystems User tables at all. They show up in the User list in the portal, but not in the Studio!

Apparently, if you use the API client to POST bulk users they are not added to the Users entity, even if they do show up in the portal. Does anyone know how you can actually add users once you fetch them from another environment?

2022-05-01 03-47-53
Jun Mun Chan

Hi Wouter,

If after creating the users, and as long as they do appear in the User section of your ODC portal, guess it means they are created already, even if they do not show up in the User Entity, when you view from ODC studio. I didn't try bulk insert via ODC API, and i only create 1 user at a time using the ODC API. I experienced the same behavior. 

Think the actual user will appear in the User entity when they finally log in, as per this other forum question

UserImage.jpg
Wouter Brouwers

Hi Jun Mun Chan, 

I did not know this, thanks so much! So this feature seems somewhat less useful than it initially appeared.

2022-05-01 03-47-53
Jun Mun Chan

Ya..it was pretty hard to digest this at the beginning, since we are so used to system entities in O11...So now, API has become our best friend. I highlight to my boss too, that the User entity is of no use to us at this moment

Unless something happens or changes in ODC in the future.

So after creating users via API, we programmatically send email invites to our users. I used mainly the steps in these documentations, thou with quite a bit of our own customisation


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