Access Denied Error When Adding New List Item

Some users are reporting that when they try to add a new list item, they are directed to a modern list form, then redirected to a page saying that they don’t have permissions to view a page.

Some users are reporting that when they try to add a new list item, they are sent to a modern list form, then redirected to a page saying that they don’t have permissions to view a page.

Symptom: After a modern list form is opened, the user is not given an opportunity to fill out the form because the user is redirected to a page requiring that the user request access.

Cause: The user’s stored credentials have expired for a downstream service whose credentials are cached in the browser.

Discussion: This error is not related to OnPoint Legal.  Office 365 is a collection of services.  Each service requires credentials.  These credentials can be passively obtained from cached credentials, or directly obtained by logging in.   Pages in one service that access data in another service rely solely upon passive credentials.  If passive credentials are present but expired, then Sharepoint assumes the user does not have access and redirects to a screen allowing the user to request access.

For example, modern Sharepoint list forms can either be Out of the Box list forms, or they can be modified by Microsoft Flow.  Microsoft Flow is a downstream service.  When a modern list form is opened, Microsoft Flow is queried to determine if a custom form is available.  If the user’s credentials for Microsoft Flow are present but have expired, an error occurs and the user is redirected to a page to request access.

Fix: The easiest fix is to clear your browser’s cache on the list form.  That is accomplished by quickly typing ctrl+F5 before the redirection occurs.  Ctrl+F5 clears the cache and reloads the page from the browser rather then using stored credentials.  This will also force obtaining new credentials for the downstream service which are good for 30 days.

A more direct method is to log out of Sharepoint and then log back in.