SharePoint News Widget - Migration Guide

Since April 2, 2026 Azure ACS authentication has been retired. All SharePoint News widgets must be migrated to Microsoft Graph v2.0 to avoid service interruption.

For new environments: If you don't see the SharePoint Widget in your GoBright portal, please contact us at support@gobright.com 

Migration Overview

Why Migrate?

  • Azure ACS Retirement: Legacy authentication (accounts.accesscontrol.windows.net) shuts down April 2, 2026
  • ROPC Deprecation: Password grant types disabled May 1, 2026
  • Security: Modern OAuth 2.0 with enhanced security
  • Performance: Native JSON API instead of XML parsing
❌ Legacy Version ✅ Modern Version
Azure ACS authentication Microsoft Graph v2.0
SharePoint REST API (api/web) Graph API (/sites/.../lists)
XML data parsing Native JSON handling
PowerShell tenant configuration Azure AD app registration

Prerequisites

Required Access & Information

  • Azure AD Global Administrator or Application Administrator role
  • SharePoint Administrator access (for verification)
  • Current widget configuration (Client ID, Tenant ID, etc.)
  • List of SharePoint sites using the widget

Note: The old PowerShell command (set-spotenant -DisableCustomAppAuthentication $false) is no longer needed and can be removed after migration.

SharePoint Preparation

Verify SharePoint Sites:

  1. Ensure your SharePoint sites have news posts published
  2. Verify that custom properties (if used) are still configured:
    • Custom Yes/No columns for filtering (e.g., "ShowOnSignage")
    • Custom text columns for excerpts (e.g., "CustomDescription")
  3. Test that images are uploaded to SharePoint (not external links)

Configuration

To configure this SharePoint Widget, follow the steps bellow:

1. Azure AD App Registration

Step 1.1: Create New App Registration

  1. 1.1 Navigate to Azure Portal → Azure Active Directory → App registrations

    1.1.2vClick "New registration"

    1.1.3 Fill in the details:

    Name: {display name}
    Supported account types: Single tenant only - {organization}
    Leave blank (not needed for client credentials)

    1.1.4 Click "Register"

Step 1.2: Configure API Permissions

1.2.1 In your new app registration, go to "API permissions"

1.2.2 Click "Add a permission" → "Microsoft Graph" "Application permissions"

1.2.3 Click "Application permissions" and Add one of the following permissions:

  1. Permission Purpose When to Use
    Sites.Read.All Read all SharePoint sites and lists Simple deployment, testing environments
    Sites.Selected Access only specifically granted sites Production environments, enhanced security

    ⚠️ Choose One: Use either Sites.Read.All OR Sites.Selected, not both. Sites.Selected requires additional configuration (see 4 Sites.Selected Configuration (Optional - Enhanced Security).
  2. Click "Add permissions"
  3. IMPORTANT: Click "Grant admin consent" and confirm
🔐 Security Tip: Use Sites.Selected for production environments and grant access only to specific SharePoint sites that need the widget.

Step 1.3: Generate Client Secret

1.3.1 Go to "Certificates & secrets" → "Client secrets"

1.3.2 Click "New client secret"

1.3.3 Set description: SharePoint News Widget Secret

1.3.4 Set expiration: 24 months (recommended)

1.3.5 Click "Add"

1.3.6 IMPORTANT: Copy the secret value immediately (it won't be shown again)

⚠️ Security Warning: Store the client secret securely. Set a calendar reminder to renew it before expiration.

Step 1.4: Note Required Information

Copy the following values from your app registration's "Overview" page:

Field Azure Portal Location Used In Widget
Application (client) ID Overview → Application (client) ID Client ID parameter
Directory (tenant) ID Overview → Directory (tenant) ID Tenant ID parameter
Client Secret Certificates & secrets → Value (copied above) Client Secret parameter

2. Sites.Selected Configuration

When to Use Sites.Selected

  • Production environments where security is paramount
  • Multi-site tenants where the widget should only access specific sites
  • Compliance requirements that mandate least-privilege access
  • Large organizations with many SharePoint sites
📝 Note: If using Sites.Selected, configure it in your Azure AD app registration instead of Sites.Read.All. You cannot use both simultaneously.

Step 2.1: Configure Sites.Selected Permission

2.1.1 In your Azure AD app registration, go to "API permissions"

2.1.2 Remove Sites.Read.All if already configured

2.1.3 Add Sites.Selected application permission

2.1.4 Grant admin consent for the new permission

 

Step 2.2: Grant Site-Specific Access via Graph Explorer

For each SharePoint site that should use the widget, follow these steps:

2.2.1: Get the Site ID

  1. Open Microsoft Graph Explorer
  2. Sign in with your admin account
  3. Make a GET request to find your site:

  4. Copy the full id from the response (format: hostname,guid,guid)
     

2.2.2: Check Current Permissions (Optional)

Verify that no permissions are currently granted:

The response should be empty ({"value": []}) for a new Sites.Selected app.

2.2.3: Grant Site Access

  1. Make a POST request to grant your app access to the specific site:

    POST https://graph.microsoft.com/v1.0/sites/{site-id}/permissions 
     
    Body: 
    { "roles": ["read"], "grantedToIdentities": [{ "application": { "id": "{your-app-application-id}", "displayName": "{your-app-display-name}" } }] }
     
  2. Replace the placeholders:
    • {site-id}: The full site ID from step 4.2.1
    • {your-app-application-id}: Application (client) ID from Azure AD
    • {your-app-display-name}: Display name from Azure AD
 

Step 2.3: Verify Access Granted

2.3.1 Repeat the GET permissions call from step 4.2.2
GET https://graph.microsoft.com/v1.0/sites/{site-id}/permissions

2.3.2 You should now see your application listed with read permissions

2.3.3 The response should include your app's details and granted roles

✅ Success: Your application now has read access to this specific SharePoint site and can retrieve news posts from it using the Graph API.
 

Step 2.4: Repeat for Additional Sites

If you have multiple SharePoint sites that use the widget, repeat steps 4.2.1 through 4.3 for each site. Each site requires individual permission grants when using Sites.Selected.

🔄 Maintenance Note: When using Sites.Selected, remember to grant permissions for any new SharePoint sites before deploying the widget to them.

3. Widget Migration

Step 3.1: Update Widget Code

3.1.1 Replace the old SharePoint News widget DataSource with the new Graph v2.0 version

3.1.2 Add the new Site ID and List ID parameter (see Step 7.2) 

3.1.3 Deploy the updated widget to your GoBright platform

📝 New Requirement: The Graph v2.0 version requires a Site ID and List ID parameter for improved reliability across all SharePoint sites. 
 

Step 3.2: Get Site ID and List ID from SharePoint

In your GoBright widget configuration, update only the authentication fields:

Parameter Old Value (Legacy) New Value (Graph v2.0)
Client ID Old ACS Client ID New Azure AD Application ID
Client Secret Old ACS Client Secret New Azure AD Client Secret
Tenant ID Same Same (unchanged)
  Site ID   Not required  Required: Get from Microsoft Graph Explorer (step 4.2.1)
   List ID   Not required  Required: Get from Site Contents
📝 Important: All other parameters (days, max items, image quality, filter keywords, custom properties) remain exactly the same.

Step 3.3: Update Authentication Information

The new Graph v2.0 widget requires a Site ID (step 4.2.1) and List ID parameter. Follow these steps to retrieve the List ID. 

Navigate to your SharePoint site (e.g., https://yourtenant.sharepoint.com/sites/yoursite)

3.3.1 Go to Site Contents

3.3.2 Find the list you want to use (typically "Site Pages" for news content)

3.3.3 Click the three dots (⋯) next to the list name

3.3.4 Select "Settings"

3.3.5 Copy the List ID from the URL:

Example URL: https://{tenant}.sharepoint.com/sites/{sitename}/_layouts/15/listedit.aspx?List={list-id-encoded} List ID: {list-id}e
 

📝 Benefit: This approach works with any SharePoint list (Site Pages, Custom Lists, Document Libraries) and eliminates site compatibility issues.

Troubleshooting

Common Issues & Solutions

Authentication Errors

Error Cause Solution
"Invalid client credentials" Wrong Client ID or Secret Verify credentials in Azure AD app registration
"Insufficient privileges" Missing API permissions Add Sites.Read.All permission and grant admin consent
"Tenant not found" Wrong Tenant ID Copy correct Tenant ID from Azure AD

Data Retrieval Issues

Issue Cause Solution
No news posts shown No recent posts or wrong date filter Check date range parameter and verify published posts exist
Images not loading Missing BannerImageUrl field Ensure news posts have banner images set in SharePoint

Sites.Selected Specific Issues

Error Cause Solution
"Access denied" when retrieving data Site not granted to application Follow Step 4.2 to grant site-specific permissions
"Site not found" with Sites.Selected Missing permissions for site discovery Ensure site permissions are granted via Graph Explorer POST request
"Forbidden" on specific site Permission granted to wrong site ID Verify full site ID used in step 4.2.1 matches the site being accessed
Works in Graph Explorer but fails in widget Using user token vs application token Ensure widget uses application-only authentication (client_credentials)

Performance Issues

  • Slow loading: Reduce max items or days filter to limit data size
  • Timeout errors: Check network connectivity to graph.microsoft.com
  • Rate limiting: Implement proper caching (already included in new version)

Getting Help

  • Azure AD Issues: Check Azure Portal → Azure AD → App registrations → [Your App] → Overview for configuration
  • SharePoint Issues: Verify in SharePoint Admin Center that sites are accessible
  • Sites.Selected Permissions: Use Graph Explorer to test site access and verify permissions
  • GoBright Support: Contact with error messages and configuration details
  • Microsoft Graph Explorer: Test API calls at developer.microsoft.com/graph/graph-explorer

🔍 Debugging Sites.Selected: If experiencing permission issues, use Graph Explorer to test the exact API calls:

  • GET site info: /sites/{tenant}.sharepoint.com:/sites/{sitename}
  • GET site permissions: /sites/{site-id}/permissions
  • GET Site Pages list: /sites/{site-collection-id}/lists/Site Pages/items

Migration Complete!

Congratulations! Your SharePoint News widget is now using modern Microsoft Graph v2.0 authentication and will continue working reliably beyond the April 2026 deadline.

Key Benefits Achieved:

  • ✅ Future-proof authentication
  • ✅ Enhanced security
  • ✅ Better performance
  • ✅ Simplified setup (no more PowerShell)
  • ✅ Full backward compatibility

 

 

1 out of 1 found this helpful