Share via

Inconsistent behavior when deploying custom SharePoint solution across multiple tenants

Arjun Mehra 100 Reputation points
2025-11-07T12:09:45.1133333+00:00

A technical issue when deploying a SharePoint custom solution across multiple Microsoft 365 tenants. The solution (not SPFx-specific, includes JSON column formatting, custom site scripts, and REST API calls) works as expected in my primary development tenant, but shows inconsistent behavior when deployed to two other tenants. Issues include: JSON formatting not rendering, site script actions failing silently, and REST API calls returning 401/403 even though API permissions were granted.

Here’s what I’ve done so far to keep environments aligned:

Confirmed same SharePoint Online build version and release ring across all tenants

Created App Catalog and deployed the same package with matching version numbers

Granted admin consent for required Graph and SharePoint API permissions

Verified tenant properties via PowerShell (Get-SPOTenant, Get-MgPolicyAuthorizationPolicy)

Tested using the same user roles (SharePoint Admin + Global Admin) to avoid permission discrepancies

Despite identical configuration and setup, behavior still differs per tenant. It seems like certain tenant-level restrictions, feature flighting, or service health states might be impacting functionality.

Microsoft 365 and Office | SharePoint | Development
0 comments No comments

Answer accepted by question author

Kha-N 8,260 Reputation points Microsoft External Staff Moderator
2025-11-07T14:00:19.3666667+00:00

Hi @ArjunMehra,

Welcome to Microsoft Q&A, and thank you very much for reaching out to us.

Based on your description, to assist you better, could you clarify what you mean by “custom solution”?

Is it an application? If so, what is its primary function?

If possible, please share the application code or relevant snippets. This will help us review how the solution operates and isolate the issues.

In the meantime, please consider the following checks:

  • Admin Consent for Multi-Tenant Apps: Ensure the external tenant has granted admin consent for your app.
  • External User and App Access in SharePoint Admin Center > Policies > Sharing, verify that external users and apps are allowed. Enable “Allow apps to access SharePoint for external users”.

Looking forward to your response.


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.

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. AI answer

    2025-11-07T12:10:02.1066667+00:00

    When deploying a custom SharePoint solution across multiple tenants, inconsistent behavior can often arise due to several factors, even when the configurations appear identical. Here are some potential areas to investigate based on your description:

    1. Tenant-Level Restrictions: Each tenant may have different settings or restrictions that could affect functionality. Check if there are any specific policies or configurations that differ between your primary development tenant and the other tenants.
    2. Feature Flighting: Microsoft periodically rolls out features in phases. It's possible that the other tenants are on different release rings or have not yet received certain features that your primary tenant has. Ensure that all tenants are on the same release ring and confirm the availability of features you are using.
    3. Service Health States: Check the service health dashboard for any issues that might be affecting the tenants where the solution is failing. Sometimes, service outages or degraded performance can lead to unexpected behavior.
    4. API Permissions: Even though you have granted admin consent for the required API permissions, verify that the permissions are correctly configured in each tenant. Sometimes, permissions might appear granted but may not be functioning as expected due to tenant-specific settings.
    5. Custom Scripts and Site Collection App Catalogs: Ensure that custom scripts are enabled in the target tenants, as this can affect the deployment of site scripts and JSON formatting. If custom scripts are disabled, it may lead to issues like those you are experiencing.
    6. Testing with Different User Roles: While you have tested with the same user roles, consider testing with different user accounts to rule out any account-specific issues or permissions that might not be immediately apparent.

    If the issues persist, consider reaching out to Microsoft support for further assistance, as they may have insights into tenant-specific configurations that could be impacting your solution's behavior.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.