I am working on a sharepoint online classic team site (which is the root site), which have publishing features enabled. now i want to grant the workflow the ability to have full control, so i follow these steps mentioned on this link
https://blog.devoworx.net/2016/01/31/unauthorized-http-workflow-how-to-create-a-workflow-with-elevated-permissions-by-using-the-sharepoint-2013-workflow/
Mainly i did:-
1. enable the "Activate Workflows can use app permissions" feature.
2. i copied the app id from "Site Settings >Below Users and Permissions > Click on Site App Permissions"
3. then i navigate to http://hostname/_layouts/15/appinv.aspx.
4. i paste the app id, click on lookup >> i got the app details.
5. then inside the "APP Permissions Request XML", i typed the following:-
<apppermissionrequests allowapponlypolicy="true"><apppermissionrequest scope="http://sharepoint/content/sitecollection/web" right="FullControl"></apppermissionrequest></apppermissionrequests>
6. click on save but i got this error:-
Sorry, something went wrong
The element 'App' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest' has invalid child element 'apppermissionrequests' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'. List of possible elements expected: 'WebApiPermissionRequests, AppPrerequisites, AppPrincipal, AppPermissionRequests, RemoteEndpoints' in namespace 'http://schemas.microsoft.com/sharepoint/2012/app/manifest'.
now the strange thing is that yesterday on a test site collection inside the same tenant, i repeated the same steps and they worked well. but the only differences is that on the
site which worked for me, when i access "Site Settings >Below Users and Permissions > Click on Site App Permissions", i only got one app which is the workflow one, as follow:-
![]()
while on the root site which i got the error on , there are 2 apps as follow:-
![]()
not sure if this can be a reason for the problem ? or what could be the problem for the error i am receiving ?