--- title: "Grant a User Access to a SharePoint Site" slug: "dex-wf-grant-user-sharepoint-site-access" updated: 2026-11-30T16:12:52Z published: 2026-11-30T16:12:52Z canonical: "documentation.sysaid.com/dex-wf-grant-user-sharepoint-site-access" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.sysaid.com/llms.txt > Use this file to discover all available pages before exploring further. # Grant a User Access to a SharePoint Site Add a user to a SharePoint site with the correct permission level so they can access the content they need. **Complexity:** Beginner. **Impact:** access-management + sharepoint + user-support + permissions. ## Why use this workflow When employees change roles, join new projects, or report missing access to departmental content (for example, a Sales or HR SharePoint site), you need to grant access quickly and correctly. Granting too much access creates compliance and data leakage risk. Granting too little blocks productivity. SharePoint sites use three default permission groups: - **Owners:** Full control. Typically reserved for site admins. - **Members:** Edit access. Appropriate for most collaborators. - **Visitors:** Read-only access. Appropriate for consumers of content. Run this workflow when a user reports that they cannot open a SharePoint site or document library they should have access to. ## Expected outcomes - The user's identity and the target SharePoint site are verified - An appropriate permission level (Owner, Member, or Visitor) is chosen - The user is added to the site's permission group - Access is confirmed by checking the site's membership - The user is notified (optional) that access has been granted ## Risks and considerations - **Principle of least privilege:** Default to Visitor (read-only) or Member (edit). Avoid granting Owner rights unless the user administers the site. - **Group vs. direct access:** If the site is tied to a Microsoft 365 Group or Team, add the user to the underlying Microsoft 365 Group. Permissions then flow through and stay in sync with Teams membership. - **Sharing policies:** Some tenants restrict external sharing. Adding a guest user may require additional approval. - **Auditing:** Permission changes are logged in the Microsoft Purview audit log. Document the business justification for future review. - Do not edit the root tenant SharePoint permissions or add users to the "Everyone except external users" group as a workaround. ## Required permissions | Permission | Why it's needed | | --- | --- | | SharePoint Administrator | Required to manage site permissions across the tenant through the admin center. | | Sites.FullControl.All (Graph) | Needed to modify site permissions programmatically through Microsoft Graph. | | Site Owner (on target site) | Site owners can grant permissions on their own site without tenant-level admin rights. | ## Ask Dex Paste the prompt into a Dex conversation. ### Prompt for IT admins ``` Grant {user} {permission_level} access to the SharePoint site at {site_url}. Verify the user is added to the correct permission group and confirm the change. ``` ### How an end user can ask Dex ``` I can't open the Sales SharePoint site - it says I don't have permission. Can you get me access? ``` ## Manual steps (admin center) ### Option A: As a site owner (recommended for single-site changes) 1. Open the SharePoint site (for example, `https://contoso.sharepoint.com/sites/sales`). 2. Click **Settings** (the gear icon) in the top-right corner. 3. Select **Site permissions**. 4. Click **Add members** > **Share site only** (to add the user to SharePoint without adding them to the associated Microsoft 365 Group). 5. Enter the user's name or email (for example, `israel@contoso.onmicrosoft.com`). 6. Choose the permission level: **Read**, **Edit**, or **Full control**. 7. Optionally, clear *Send email* if you do not want the user to be notified. 8. Click **Add**. ### Option B: In the SharePoint admin center (for admins managing many sites) 1. Sign in to the [Microsoft 365 admin center](https://admin.microsoft.com). 2. Go to **Admin centers** > **SharePoint**. 3. In the SharePoint admin center, go to **Sites** > **Active sites**. 4. Click the target site's name to open its properties. 5. Select the **Membership** tab. 6. Under the appropriate role (Site admins, Members, or Visitors), click **Add**. 7. Enter the user's email and click **Save**. ### Verify 1. Return to **Site permissions** and confirm that the user appears in the correct group. 2. Ask the user to reload the site in their browser. They may need to sign out and back in. ## Microsoft Graph API Microsoft Graph exposes SharePoint site permissions through the `/sites/{site-id}/permissions` endpoint. To add users to the default Members, Owners, or Visitors groups, the SharePoint REST API (`_api/web`) is often more direct. ### Step 1: Resolve the site ID ``` GET https://graph.microsoft.com/v1.0/sites/{hostname}:/sites/{site-name} Example: GET https://graph.microsoft.com/v1.0/sites/contoso.sharepoint.com:/sites/sales ``` The response includes an `id` in the form `{hostname},{site-collection-guid},{web-guid}`. ### Step 2: Resolve the user's Entra ID object ID ``` GET https://graph.microsoft.com/v1.0/users/{userPrincipalName} ``` ### Step 3: Add a site permission (Graph) ``` POST https://graph.microsoft.com/v1.0/sites/{site-id}/permissions Content-Type: application/json {  "roles": ["read"],  "grantedToIdentitiesV2": [    {      "user": {        "displayName": "Israel Lifshitz",        "id": "{user-object-id}"      }    }  ] } ``` Valid `roles` values: `read`, `write`, `owner`. ### Alternative: SharePoint REST API (add to default group) ``` POST https://{tenant}.sharepoint.com/sites/{site}/_api/web/sitegroups/getbyname('{site} Members')/users Content-Type: application/json;odata=verbose Accept: application/json;odata=verbose {  "__metadata": { "type": "SP.User" },  "LoginName": "i:0#.f|membership|user@contoso.com" } ``` ## PowerShell The **PnP.PowerShell** module is a reliable way to manage SharePoint site permissions from a script. It supports modern authentication and works with both SharePoint Online and the Microsoft 365 Group model. ### Prerequisites ``` # Install the module (one-time) Install-Module PnP.PowerShell -Scope CurrentUser # Register a PnP Entra app (one-time, interactive) Register-PnPEntraIDAppForInteractiveLogin -ApplicationName "PnP-Admin" -Tenant "contoso.onmicrosoft.com" -Interactive ``` ### Connect and add the user ``` # Connect to the target site Connect-PnPOnline -Url "https://contoso.sharepoint.com/sites/sales" -Interactive # Add user to the Members group (edit access) Add-PnPGroupMember -LoginName "israel@contoso.onmicrosoft.com" -Group "Sales Members" # Verify Get-PnPGroupMember -Group "Sales Members" ``` Permission group names follow the pattern `{Site Title} Owners`, `{Site Title} Members`, and `{Site Title} Visitors`. Use `Get-PnPGroup` to list the actual names on your site.