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.

What the permission allows and what it does not

AspectDetails
Permission typeDelegated: it works only on behalf of the signed-in user, never in the background and never without a user
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 Password Vault request on the API access page

The Password Vault request on the API access page

📝 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 Web Client Extensibility. 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 SharePoint Administrator or Global Administrator role.

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.

Featured Articles

RSS Reader. Solution Overview

Overview of the Vitextra RSS Reader web part for SharePoint Online and Microsoft Teams: aggregating several RSS feeds in one place, Compact, Newsletter and Cards layouts, source tabs, category and search filters, sorting, automatic refresh, images, Teams tabs and personal app, how feeds are loaded and what the web part needs.

47 5 min
Permissions in Discussions: Who Can Read, Post and Moderate

Reference for site owners and administrators on how the Vitextra Discussions web part maps SharePoint site permissions to what users can do: readers with Read, members with Add Items (Contribute / Edit) who post, reply, like, follow and report, and moderators with Manage Lists who approve, pin, feature, lock and delete. Covers guests, the default Members group, the visibility rule for pending posts and unique permissions on the Discussions lists.

30 7 min
Single Source vs. Multiple Sources (Tabs): Choosing the Search Mode in Smart Search

Learn the difference between the Single Source and Multiple Sources (Tabs) modes of the Vitextra Smart Search web part, what each of the ten built-in search sources finds, and how to rename, hide and reorder search tabs in SharePoint Online.

97 5 min

Share