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

Martyn 1 Reputation point

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 ''.

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 and using a version of this (New-AzureADMSInvitation -InvitedUserDisplayName "Sanda" -InvitedUserEmailAddress -InviteRedirectURL -SendInvitationMessage $true). Is there another setting or command I need to run to 'authorise' access?


A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,541 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,331 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,756 Reputation points

    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