Give automatic access to a sharepoint site when inviting an external guest using powershell

Martyn 1 Reputation point
2021-06-24T08:08:32.773+00:00

Hi Everyone,

Maybe it is me being stupid, but I cannot seem to workout how to get around this problem. I want to invite external guests to a sharepoint site (this is all I want to give them). u

Using the azure portal I can add new guest user, but after authentication, the new guest gets dumped into an unhelpfully empty 'myapplications.microsoft.com'.

If I use powershell to send the invitations, after authentication, the guest gets presented with a further 'request access' screen. I set the InviteRedirectURL to the sharepoint I want to give access to. The sharepoint permissions are set to allow access to a dynamic AD group that automatically includes all external users.

I am following the instructions here https://learn.microsoft.com/en-us/azure/active-directory/external-identities/b2b-quickstart-invite-powershell and using a version of this (New-AzureADMSInvitation -InvitedUserDisplayName "Sanda" -InvitedUserEmailAddress sanda@fabrikam.com -InviteRedirectURL https://myapps.microsoft.com -SendInvitationMessage $true). Is there another setting or command I need to run to 'authorise' access?

Thanks

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,619 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,460 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,761 Reputation points
    2021-06-25T07:43:21.1+00:00

    Hi @Martyn ,

    We need some time to do some related tests and investigations. Any updates will be post here. Here is a blog about inviting external users via Azure AD you could have a look:
    How to invite external users via Azure AD

    And here is another blog about how to share site to external users if you have any concern:
    How to share a SharePoint Site externally
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments