web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

User not able to login until the save button is pressed on the user form ( SysUserManagement)

(0) ShareShare
ReportReport
Posted on by 218

Hi Friends,

When a user is newly created i am getting an error saying "You are not authorised to login to D365" when the newly created user is logged in.

But the problem is once i enter the SysUserManagement form for the particular user(Image is attached) and click the save button without making any changes then the user is able to login to the D365 application.This looks like a strange scenario.Any inputs on this would be really helpful.

Thank you

G Badri Narayan

I have the same question (0)
  • GirishS Profile Picture
    27,843 Moderator on at

    Hi Badri,

    Can you elaborate more on this?

    When are you getting the error "You are not authorized to login to D365"?

    Thanks,

    Girish S.

  • BADRI NARAYANAN G Profile Picture
    218 on at

    Hi Girish,

    Initially the first time when i create an user its throwing this error.But when i go the SysUserManagement form and navigate to that user and click save for that user without making any changes then the newly created user is able login.I am not sure if some parameters are changed behind the scenes when save button is clicked.

    Thank you

    G Badri

  • Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi, Is it happening for all newly created users and get resolved by clicking on Save button?

  • GirishS Profile Picture
    27,843 Moderator on at

    How are you creating user? You will be creating or importing user from the SysUserManagament form right?

    Thanks,

    Girish S.

  • BADRI NARAYANAN G Profile Picture
    218 on at

    Hi Girish,

    It is happening for all newly created users.Actually we have developed a functionality where if we create an employee with a email id then the user is automatically created.I am not importing any user from SysUserManagement.But intially as i said if user is created is not allowing them to login but after i go to the form and click on save for that particular user , then the user is able to login.

    Thank you

    G Badri

  • GirishS Profile Picture
    27,843 Moderator on at

    I think you need to revisit the logic for creating user when you create an employee with email Id.

    Thanks,

    Girish S.

  • BADRI NARAYANAN G Profile Picture
    218 on at

    Hi Girish,

    Actually the place where email is set for the user is done during the creation of the employee.But the user is able to login once save button is clicked in SysUserManagementForm which is a standard form.So is there any other way to check for this issue?

    Thank you

    G Badri

  • GirishS Profile Picture
    27,843 Moderator on at

    No, there will be piece of code where the record will be inserted into the UserInfo table while creating the employee. I am asking you to revisit that code to find any clue.

    Thanks,

    Girish S.

  • BADRI NARAYANAN G Profile Picture
    218 on at

    Hi Girish,

    Yes i have seen that code where they are inserting few values into UserInfo Table.I also checked the values in this table before and after saving the form,the values are the same.Please let me know if there is any other way.

    Thank you

    G Badri

  • GirishS Profile Picture
    27,843 Moderator on at

    Try the code given in the below blog in runnable class and check whether its creating user and able to login without clicking save button.

    https://selvadynamics.blogspot.com/2020/04/create-new-user-in-d365-fo-using-x.html?m=1

    Thanks,

    Girish S.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 531

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 402 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 257 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans