Forum Discussion

Thomas Habersatter's avatar
Thomas Habersatter
Copper Contributor
May 15, 2017
Solved

Azure AD B2B SharePoint on Premise using Groups

Having SharePoint OnPrem, ADFS, Azure AD Sync etc in place and wanting to use Azure AD B2B for external user access the authentication of external users in the SharePoint Web Application is now possible. 

Creating an "Azure Security Group" (putting all external users in it) and authorizing this group in our SharePoint OnPrem SiteCollection does not authenticate users (Access denied).

So the resolvement of "Azure Security Groups" seem not to work. In the SAML token (which reaches SharePoint) the role claims are not existent although we configured the Token Issuer with the role claim rule (http://schemas.microsoft.com/ws/2008/06/identity/claims/role).

 

What are we missing? Is Azure AD B2B with "Azure Groups" possible? I found no article describing this in the web.

  • Thomas Habersatter's avatar
    Thomas Habersatter
    Jun 07, 2017

    Now Azure AD Groups are transmitted as Roles-Claim to SharePoint. The only thing we changed was the AzureCP configuration (Claims Provider) by removing the UPN Claim, so that only EmailAddress and Role is used as Claim types mapped to Azure objects.

10 Replies

  • Inorder for B2B users to access OnPrem applications, you need to:

    1. Set up App proxy for Authentication to work

    2. Write back B2B users to OnPremises for Authorization to work

     

    We are working on making this more seamless in the future.

    • Deleted's avatar
      Deleted
      What do you mean by "Write back B2B user" are you referring to leveraging AD connect? We are facing this same challenge. We have an on-prem SharePoint but need to share webaccess to external users.
      • roykim's avatar
        roykim
        MVP

        My understanding the user writeback is no longer supported in Azure AD Connect

         

         

    • Thomas Habersatter's avatar
      Thomas Habersatter
      Copper Contributor

      So do you mean that the suggested steps are necessary to access onPrem Farm at all, or do you mean the steps are necessary for being permitted with an Office 365 group.

      Because directly authorized users already can access our onPrem SharePoint (via ADFS Proxy). I just search for an option to authorize external users by using a security group.

      An alternative for me would be to have a group like "Everyone except External users". I just want to have a group (onPrem) to identify all external users.

      • Bart Kuppens's avatar
        Bart Kuppens
        Copper Contributor
        Hello Thomas,
        No, you don't need to do this to access your SharePoint On-Prem. I have done the same thing to give external users access to a SharePoint 2013 On-Prem, without an App Proxy or write-back stuff.
        But I'm facing the same issue you have. I can give individual users from Azure AD access to a SharePoint on-prem but when they are part of a security group in Azure and I give them access through that group, the get an access denied.
        Haven't found a solution for this. Would be great to know if this is even possible or not.

Resources