Overview

Password Vault keeps each user's vault in a file in the app folder of that user's OneDrive. To read and write this file, the solution package requests exactly one Microsoft Graph permission: Files.ReadWrite.AppFolder. A tenant administrator must approve it once after the package is deployed; until then the web part cannot open or create any vault. This article explains the permission and the approval.

Why Password Vault needs the permission

The web part uses Microsoft Graph for three operations, all in the signed-in user's OneDrive app folder:

  • finding the vault file vitextra-password-vault.json;
  • creating it the first time the user opens Password Vault;
  • reading it and saving it after every change.

Password Vault requests no other Microsoft Graph permission and needs no SharePoint list permissions: any user who can open the page can use his or her own vault.

Users also need a provisioned OneDrive and approved access. The permission-specific error described below assumes that no other existing grant provides the required file access.

What the permission allows and what it does not

AspectDetails
Permission typeDelegated: it works only on behalf of the signed-in user, not as an independent application identity
AllowsReading and writing files in the app folder of the signed-in user's own OneDrive
Does not allowReading or changing the user's other OneDrive files, other users' OneDrive, SharePoint sites, mail, calendars or directory data
Application (app-only) accessNone; Password Vault has no service account and no background process

The pending permission request for Password Vault

The pending permission request for Password Vault

📝 Note
In SharePoint Online, API permissions of SPFx solutions are granted to one Microsoft Entra ID application shared by all SPFx solutions in the tenant, SharePoint Online Client Extensibility Web Application Principal. Once Files.ReadWrite.AppFolder is approved, it is available to every SPFx solution deployed in your tenant, and the app folder is the folder of that shared application. This is how the SharePoint Framework works for all vendors. Deploy only SPFx solutions that you trust; see the security notes in KB10360. How to Approve Microsoft Graph API Permissions for Vitextra Solutions in the SharePoint Admin Center.

How to approve the permission

The permission request is created when the Password Vault package is deployed to the tenant App Catalog (see KB10035. How to Install a Vitextra Product in SharePoint Online). You need the Global Administrator role; the SharePoint Administrator role alone is insufficient for Microsoft Graph permissions. Microsoft

1. Open the SharePoint admin center.

2. Go to Advanced > API access.

3. On the Pending requests tab, select the request of the Vitextra Password Vault package for Microsoft Graph / Files.ReadWrite.AppFolder.

4. Click Approve and confirm.

5. Check that the permission now appears on the Approved requests tab.

If Files.ReadWrite.AppFolder has already been approved for another SPFx solution, no new request appears: SharePoint reuses the existing grant. Users do not see a consent prompt; after the approval the web part works for everyone in the tenant, usually within a few minutes. If it does not, reload the page.

💡 Tip
For screenshots, PowerShell commands, partial approval, revoking permissions and the behaviour during updates, see KB10360. How to Approve Microsoft Graph API Permissions for Vitextra Solutions in the SharePoint Admin Center.

What users see until the permission is approved

The package can be deployed and the web part can be added to pages while the request is still pending. Without the permission, however, the web part cannot read or create the vault. Instead of the Set up PIN screen or the Enter PIN prompt, users see the message "Sorry, something went wrong. Please refresh the page and try again." with a Refresh button. No vault file is created.

Password Vault before the permission is approved

Password Vault before the permission is approved

After the approval, users press Refresh or reload the page, and the web part opens normally.

The same message appears if an approved permission is later removed on the Approved requests tab. Removing the permission does not delete any vault files: they stay in the users' OneDrive and open again once the permission is approved. For other causes of the message, see KB10459. Why Password Vault Does Not Load: "Something Went Wrong" and Permission Errors.

Questions and answers

Ask a question about this article and get an official answer from our team.

No questions yet. Be the first to ask.

Featured Articles

How to Read the Team Absence Calendar: Colors, Hatching and Marks

A reference to every color, pattern and mark in the Vitextra Team Absence Calendar: absence type colors, hatched pending requests, grey Away entries, the half-day mark, shaded days, holidays, today, tooltips and the +N more link.

87 4 min
Showing Recent Discussions on Any Page with the Discussions Activity Web Part

How to add and configure the Discussions Activity web part of Vitextra Discussions on a SharePoint Online page or in a Microsoft Teams tab: what the list of recent topics shows, choosing one board or all boards of the site, the Board page URL that turns titles into deep links, the Maximum items slider, the Show board name switch, why the web part hides itself when there are no topics, and how to use it on a home page or in Teams.

28 5 min
QR Code Generator: Solution Overview

What the Vitextra QR Code Generator web part is and what it offers: nine QR code data types (URL, text, vCard, Wi-Fi, email, SMS, phone, location, event), design options with shapes, colors, gradient and a logo, download as PNG, JPEG, SVG or WebP, copy to clipboard and a configuration saved with the SharePoint page.

88 6 min

Share