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?