I am trying to generate ClientID and Secret in one of the SharePoint Portal using the _layouts/15/appregnew.aspx url. But all the time while submitting it provides error such as "Something went wrong".

Thanks in advance!

1 Answer 1


You may need to enable ACS app-only access token:

"For new tenants, apps using an ACS app-only access token is disabled by default. We recommend using the Azure AD app-only model which is modern and more secure. But you can change the behavior by running ‘set-spotenant -DisableCustomAppAuthentication $false' (needs the latest SharePoint admin PowerShell)."

Granting access using SharePoint App-Only

  • Thanks for the reply. Do I need to have separate Azure license for the Azure AD app-only model ? Aug 1, 2022 at 14:44
  • No, you can create an app registration in the default Azure AD tenant that comes with your Microsoft 365 subscription. If this answer helped, please upvote or mark the answer as accepted to help inform the community. Aug 1, 2022 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.