Forum Discussion

BenoitLefevre's avatar
BenoitLefevre
Copper Contributor
Feb 06, 2024

Issue with SharePoint API

Hello,   We are facing issue using SharePoint API.  We created an app and granted it access to our tenant  [mutta.fr].     It has been activated since 19th of December 2023 for a year :  ...
  • ganeshsanap's avatar
    Feb 07, 2024

    BenoitLefevre As per bullet point #2, are you able to access the list from same SharePoint "tenant" or different tenant?

     

    You may need to change the value of DisableCustomAppAuthentication property at SharePoint tenant level like: 

     

    Install-Module -Name Microsoft.Online.SharePoint.PowerShell  
    $adminUPN="<the full email address of a SharePoint administrator account, example: email address removed for privacy reasons>"  
    $orgName="<name of your Office 365 organization, example: contosotoycompany>"  
    $userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."  
    Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential  
    set-spotenant -DisableCustomAppAuthentication $false

     

    References:

    1. "Token type is not allowed" error on SharePoint REST API 
    2. SharePoint Online authorization issue 'Token type is not allowed' 

    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

Resources