Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Add user from differen...
Finance forum
Suggested answer

Add user from different domain on development VHD

Posted on by 1,858

Hi,

On development VHD, Let's say I ran AdminUserProvisioning with domain1.com

Now I want to add a user from user2@domain2.com

Is it possible to directly add the user from the Users form or there's no way I can do that before first adding user2@domain2.com as a guest user in the domain1.com Azure Active Directory?

I tried adding the user manually by specifying sts.windows.net/domain2.com in the Provider field. But it didn't work.

Appreciate any tips.

Best Regards

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,818 Super User 2024 Season 2 on at
    RE: Add user from different domain on development VHD

    Hi Mohammad,

    Can you tell of domain2.com is a domain with a tenant Azure AD? Or is it e.g. a hotmail or gmail address? For sure, you should not add users in the app registration.

    If you read my blog, then anyway it is best practice to add the user from another domain as external or guest user.

  • MYGz Profile Picture
    MYGz 1,858 on at
    RE: Add user from different domain on development VHD

    I verified that just inviting the user user2@domain2.com in the domain1.com AzureAD, the original scenario described in the question makes it work. Also no need to add the user2 as owner in the app registration.

    So is it confirmed that w/o adding the user in the admin tenant AD (with which AdminUserProvisioning was done), we cannot add users in D365 FO?

  • MYGz Profile Picture
    MYGz 1,858 on at
    RE: Add user from different domain on development VHD

    Hello Ramit/Andre,

    Thanks for the info. This is the error I'm getting:

    Sorry, but we’re having trouble signing you in.

    AADSTS50020: User account 'admin.####@###.com' from identity provider 'sts.windows.net/ does not exist in tenant 'ABC Company' and cannot access the application '#######-46dd-######-895b-d07eb######08'(Dev_VHD_10.0.24) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.
    What I can do here is add the user user2@domain2.com in the App Registration (in the domain1.com apps) as an owner. And then retry, maybe then it will work. But I was wondering if it's possible without that step. Just entering all the required info from the user info page w/o having to deal with the AzureAD.
    Thanks,
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,818 Super User 2024 Season 2 on at
    RE: Add user from different domain on development VHD

    Hi Mohammad,

    Coincidentally, today I published a blog about this topic. Ramit already shared the link to this blog. He shared the link from my mailing list. You can also access the blog using the URL directly: https://dynamicspedia.com/2022/09/how-to-correctly-setup-external-or-guest-users-in-dynamics-365-fo/

    You already tried to alter the Provider field in a correct way. This option works in development environments. Both hosted in the cloud as local DEV machines. Can you tell what exactly you experience when you talk about "didn't work"? What exact error do you get? What type of domain did you use? Is it an organizational or public mail account?

  • Suggested answer
    Ramit Paul Profile Picture
    Ramit Paul 22,293 Most Valuable Professional on at
    RE: Add user from different domain on development VHD

    Check this blog dynamicspedia.us20.list-manage.com/.../click

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,818 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,147 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans