Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM Connection String for Azure AD B2B Accounts

(0) ShareShare
ReportReport
Posted on by

Hi there,

we have a few environments where we are invited as users by Azure AD B2B connect (See [1] and [2]). We have no troubles to access the crm instances in the browser. However, we currently find no working connection string to connect to such an environment, without using a local user for the login. We more or less tried all combinations for the username (our local one or the invited user upn in form of username_localdomain#EXT#@customer.onmicrosoft.com).

Does anyone have a working example for this scenario or some other helpful hints? This article https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/xrm-tooling/use-connection-strings-xrm-tooling-connect does not contain any further helpful insights.

Regards,

Christoph

[1]: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/admin/invite-users-azure-active-directory-b2b-collaboration
[
2]: https://community.dynamics.com/365/projectserviceautomation/b/daytodaydynamics365/archive/2018/02/12/inviting-guest-users-to-dynamics-365-with-azure-active-directory-b2b-collaboration 

*This post is locked for comments

  • Suggested answer
    Christoph Keller Profile Picture
    on at
    RE: CRM Connection String for Azure AD B2B Accounts

    Just received the confirmation. Guest user scenario (Azure AD B2B) is not supported by the SDK.

  • JayKay27 Profile Picture
    16 on at
    RE: CRM Connection String for Azure AD B2B Accounts

    Hi there,

    I have the same issue. The guest users can access via Browser but not with a connection string (for example XrmToolBox).

    Regards,

    Julian

  • Christoph Keller Profile Picture
    on at
    RE: CRM Connection String for Azure AD B2B Accounts

    This is the actual UPN of the user. Connecting with a native user of this tenant is not an issue, but this is not the question. I need to connect with my invited user.

  • PranavShroti Profile Picture
    4,510 on at
    RE: CRM Connection String for Azure AD B2B Accounts

    just thinking out of the box....did you try a different user without special chars ('#')

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans