SharePoint App Policy Only calls cannot access draft items even with full-control access


Everything is said in the subject of this blog post! I don’t know whether it’s a by design issue or a bug but facts show that AddIn-Only Policy calls cannot read items in draft status. I wasn’t aware of that restriction and I
can’t find any official documentation stating this.

How could it be a problem? If you build a third-party tool that makes some monitoring on the host web such as collecting the amount of documents that are not published for instance, you’re likely going to build a job (scheduled job in Azure for instance) that will connect to 365 using the app credentials since no user context will be available.

In that case, at the time of writing, your app won’t be able to tackle draft items although you gave it full control. As soon as you inject a user context into it, you can see draft items providing the user has enough privileges to do so.

Happy Coding!

About Stephane Eyskens

Office 365, Azure PaaS and SharePoint platform expert
This entry was posted in Office 365, SharePoint Online and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s