Solved

Attempted to perform an unauthorized operation in custom Javascript

  • 24 August 2021
  • 1 reply
  • 373 views

Badge +6

On a list form (classic designer on O365), I have a Button of type JavaScript and a function name on Client Click property.

The JavaScript is added as a file reference (SiteAssets) and gets called if I click the Button.

Inside this function I make an ajax call to retrieve list items from the same list.

I get "Attempted to perform an unauthorized operation" when calling the REST-Api of SharePoint-Online by ajax.

I am accessing the Form with a high privileged user.

So I assume that this has to do with API permissions for SharePoint Online in Azure AD regarding Nintex Forms for Office 365?

 

 

icon

Best answer by Levy 26 August 2021, 15:44

View original

1 reply

Badge +6

Found the answer myself. I totally missed that I am in an Add-In and did not used the RequestExecutor.


Credits to . He helped with the following post: Solved: REST access denied from nintex forms office 365 - Nintex Community

Reply