Forum Discussion
Issue with SharePoint API
- 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:
- "Token type is not allowed" error on SharePoint REST API
- 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.
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:
- "Token type is not allowed" error on SharePoint REST API
- 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.