Modifying Price Using App-Only Tokens Inwards Sharepoint – Undocumented Work-Around

By Monday, August 27, 2018 on August 27, 2018 Tags:
Modifying Price Using App-Only Tokens Inwards Sharepoint – Undocumented Work-Around.


Photo past times Alekzan Powell at Unsplash

In a rage of fits yesterday where I was running a PowerShell script against SharePoint Online amongst an draw concern human relationship using multi portion authentication – which but don’t endure reliably due to the role of login via spider web browser I decided to role app-only authentication instead.

I used the next permission manifest which should ensure god rights, right?

<AppPermissionRequests AllowAppOnlyPolicy="true" >   <AppPermissionRequest Scope="http://sharepoint/content/tenant" Right="FullControl" />   <AppPermissionRequest Scope="http://sharepoint/taxonomy" Right="Write" /> </AppPermissionRequests> 

But since I’m dealing amongst modifications to price inwards this script, that chop-chop broke down. More rage, to a greater extent than fits!

Reading https://msdn.microsoft.com/en-us/library/office/mt210897.aspx?f=255&MSPPError=-2147217396#sectionSection0 states:

You can't role the app-only policy amongst the next APIs:

  • User Profile

  • Search

  • Taxonomy (this only applies to scenarios that write to the managed metadata service)

But turns out this is non only truthful – at that spot is an undocumented work-around which seems to endure but fine. The underlying main for the app-only addin is i:0i.t|00000003-0000-0ff1-ce00-000000000000|app@sharepoint.

If yous larn to the term shop admin center, too add together app@sharepoint every bit a term shop admin, it all works! Very handy, real undocumented, in all likelihood non supported – but hello – I’m running a script here.

In a rage of fits yesterday where I was running a PowerShell script against SharePoint Onl Modifying price using app-only tokens inwards SharePoint – undocumented work-around

A big thank yous to the mortal who provided the work-around at the destination of this ii yr quondam thread https://social.msdn.microsoft.com/Forums/sqlserver/en-US/c89cdd37-4527-4855-ab98-1033ce130f6f/taxonomy-operations-using-app-context?forum=appsforsharepoint

Thanks for reading : Modifying Price Using App-Only Tokens Inwards Sharepoint – Undocumented Work-Around


Related Post