I have one SHarePoint Hosted app. I given in appmanifest.xml
as app only calls and given scope as tenant.
<AppPermissionRequests AllowAppOnlyPolicy="true" >
<AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />
</AppPermissionRequests>
This app will create folders for each user by taking input from user. Even though the user is having only read only permission on that library, app should create folder behalf of the user.
But if I deploy this app and try for an user who is having edit permission, it is giving Access Denied
error.
What would be the case in this scenario. Do I need to create any object in javascript file for app-only calls in order to fulfill my requirement? I googled but I did't get any proper information on SharePoint Hosted apps with app-only calls.