SharePoint

“Token type is not allowed” error on SharePoint REST API

2161 views 0

This issue sometime may occur because new SharePoint subscription Grant App Permission is disabled by default.

To enable it, please run the following commands in Windows PowerShell:

  • Install-Module -Name Microsoft.Online.SharePoint.PowerShell
  • $adminUPN=”(the full email address of a SharePoint administrator account, example: jdoe@contosotoycompany.onmicrosoft.com)”
  • $orgName=”(name of your Office 365 organization, example: contosotoycompany)”
  • $userCredential = Get-Credential -UserName $adminUPN -Message “pwd”
  • Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential
  • set-spotenant -DisableCustomAppAuthentication $false

Note : Fill in the values for the $adminUPN and $orgName variables (replacing all the text between the quotes, including the characters), and then run the following commands in the Windows PowerShell. When prompted with the Windows PowerShell credential request dialog box, type the password for the SharePoint admin account.

Let us know at samlsupport@xecurify.com if you have any concerns or other questions. We will be happy to help you.

Was this helpful?


Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com