• How to Add Guest Users in Microsoft 365 and Grant Access to the Application

    Prerequisites
    1. Global admin or user admin can add guest users.
    2. Global admin or SharePoint admin can execute the PowerShell script.

    Step 1 - Add guest users in Microsoft 365
    1. Please navigate to the "Invite external user" page in Azure by logging in with your credentials via the following URL Invite external user - Microsoft Azure.

    2. Helpdesk

    3. Enter the external user details. If you prefer not to send an invitation message, you can uncheck the "send invite message" checkbox.

    4. After entering the required details, please click the 'Invite' button to add users to your Microsoft 365

    5. Helpdesk

    Step2- Enable guest user access for the SharePoint site
    1. Navigate to the SharePoint admin center, activate sites, and select the site where the application is installed (e.g., HR365 App site).

    2. Helpdesk

    3. Afterward, navigate to the settings and choose 'New and existing guest' from the dropdown menu, then save the changes

    4. Helpdesk

    5. Clicking on the site name will open the site. Grant site member permission to guest users by entering their email addresses.

    6. Helpdesk


      Helpdesk

    Step3: Providing appcatalog site access:
    1. Go to the SharePoint admin center.

    2. Search for "appcatalog" and navigate to the website.

    3. Helpdesk

    4. Click "Settings" followed by "Site settings."

    5. Helpdesk

    6. Select "Site permissions."

    7. Helpdesk

    8. Provide permissions to the external user by entering their email.

    9. Helpdesk

    10. Make sure to grant read access to the user.
    Step4- Execute the PowerShell script to enable external users to operate within HR365 applications
    1. Open the SharePoint Online Management Shell by running it as an administrator. If you don't have it, download it from the following link Download SharePoint Online Management Shell from Official Microsoft Download Center

    2. Helpdesk

    3. In the second line of the script, replace your tenant's name in the URL and your email address.
    4. Install-Module -Name Microsoft.Online.SharePoint.PowerShell -RequiredVersion 16.0.8029.0
      Connect-SPOService https://YourTenantName-admin.sharepoint.com/ -credential User@contoso.com Set-SPOTenant -ShowAllUsersClaim $true.

    5. For example, if your tenant's name is 'Bright' and your email address is john_Taylor@bright.onmicrosoft.com, the line should be
      Connect-SPOService https://Bright-admin.sharepoint.com/ -credential john_Taylor@bright.onmicrosoft.com


      The complete script:
      Install-Module -Name Microsoft.Online.SharePoint.PowerShell -RequiredVersion 16.0.8029.0
      Connect-SPOService https://Bright-admin.sharepoint.com/ -credential john_Taylor@bright.onmicrosoft.com Set-SPOTenant -ShowAllUsersClaim $true.

    6. Copy and paste the script into PowerShell, press Enter, and a credential box will pop up. Enter your password and click 'OK.'

    7. Helpdesk


      Helpdesk

      After running the script, it takes 4 to 8 hours to set up. Afterward, you can share the application URL with guest users, allowing them to access the application. Run the script only once.