product-backlog icon indicating copy to clipboard operation
product-backlog copied to clipboard

Add helpful errors when OneDrive files may be blocked by permission

Open chrisshaw opened this issue 3 years ago • 4 comments

As an instructor creating a OneDrive assignment, I want the error message to tell me why it didn't work, so I know what step to take next

With the launch of OneDrive, many users may not be able to use the feature due to admin sharing restrictions. We have knowledge base articles describing this but users have no way to find this information in the middle of a flow when this breaks. This gives them helpful error messaging.

Flow

  • When I try to I see a monster message (see thread :point_down:) that
    • mentions Microsoft Sharepoint and OneDrive specifically
    • uses language from Knowledge Base article
    • points to Knowledge Base article
    • includes how this could happen for reasons other than permissions
    • includes how this could happen due to permissions
      • You don't have edit rights (not owner or shared with view rights)
      • Either the organization, specific site, or OneDrive has disabled sharing publicly ("restricted sharing")

Inspired by this Slack thread and this Slack thread

chrisshaw avatar Nov 11 '21 01:11 chrisshaw

Details on There was a problem choosing a file from OneDrive: e.value is undefined and There was a problem choosing a file from OneDrive: Cannot read properties of undefined (reading '0').

These errors are actually from the same underlying event. The former is shown in Firefox browser, the latter in Chrome.

They occur if a Microsoft 365 admin has implemented a policy forbidding sharing of files through OneDrive and/or SharePoint to anyone without requiring a sign-in. Screen Shot 2022-01-28 at 11 55 30 AM

Instructors will see this error during assignment creation, after picking a PDF to use through the OneDrive picker. Screen Shot 2022-01-28 at 1 18 51 PM Screen Shot 2022-01-28 at 1 17 56 PM

mattdricker avatar Jan 28 '22 18:01 mattdricker

UX note: Ideally, Hypothesis would detect that sharing is restricted for the OneDrive account after the instructor logs on but before the instructor selects their PDF to use, allowing a message to be displayed before the OneDrive picker loads.

mattdricker avatar Jan 28 '22 18:01 mattdricker

UX note: Ideally, Hypothesis would detect that sharing is restricted for the OneDrive account after the instructor logs on but before the instructor selects their PDF to use, allowing a message to be displayed before the OneDrive picker loads.

I see you point, but unfortunately that's not possible. The reason is that the login to OneDrive is driven by a the OneDrive picker. We can't add an intermediate step after login to verify the permissions.

esanzgar avatar Feb 09 '22 12:02 esanzgar

https://app.hubspot.com/contacts/6291320/ticket/1339140764

mkdir-washington-edu avatar Dec 26 '22 15:12 mkdir-washington-edu