Levy
Scout

Attempted to perform an unauthorized operation in custom Javascript

Jump to solution

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?

 

 

Labels: (1)
0 Kudos
Reply
1 Reply
Levy
Scout

Re: Attempted to perform an unauthorized operation in custom Javascript

Jump to solution

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

View solution in original post

Reply