Creating the first (test) Entra App for VBAuth on Azure #
VBAuth FAQ — Microsoft Entra ID / Azure Portal
Overview #
A Microsoft Entra application registration is required before VBAuth can authenticate against your organisation’s tenant. This document walks through creating one from scratch in the Azure Portal, and identifying the two values the development team need — the Tenant (Directory) ID and the Application (Client) ID — to run their initial connectivity test using the VBAuth library.
The registration created here is read-only and carries the lowest possible permissions — it requests only User.Read, which Azure grants by default to every new app. No data is written, no elevated access is required, and the registration can be deleted at any time if the test does not proceed.
The whole process takes around ten minutes and requires no code and no changes to your existing applications or infrastructure.
Security and Permissions #
Before you begin, here is a plain summary of what this app registration does and does not do.
| Topic | Detail |
|---|---|
| Permission granted | User.Read only. This allows the app to read the signed-in user’s own name, email address, and basic profile from Microsoft Graph. It cannot read any other user’s data. |
| How permission is granted | User.Read is a Delegated Permission. It operates entirely on behalf of the signed-in user and is bounded by that user’s own access rights. The app cannot do anything the user could not do themselves. |
| Application Permissions | None. VBAuth uses only Delegated Permissions. It has no background or unattended access to your tenant, your data, or any Microsoft service. |
| Data stored by the app | None. The app registration is a configuration record in Azure only. No user data passes through it and nothing is stored outside your Microsoft 365 tenant. |
| Network traffic | All authentication traffic goes directly between the user’s machine and Microsoft’s own Entra ID endpoints (login.microsoftonline.com). No third-party servers are involved. |
| What the developer receives | The Tenant ID and Client ID only. These are non-secret identifiers — they confirm which tenant and which app registration to target. They do not grant any access on their own. |
Note: A Client Secret is not required for this test. VBAuth uses the OAuth 2.0 Authorization Code flow with PKCE, which is the modern browser-based flow recommended by Microsoft for user-facing applications. No secret needs to be shared with the developer.
Granting Admin Consent #
We recommend that you grant admin consent for the User.Read permission before handing the IDs to the developer. This is a one-click action in the Azure Portal and has the following benefit:
- Any licensed user in the tenant can authenticate against the app during the test phase, without being prompted individually to consent. This makes testing faster and avoids unnecessary interruptions for end users.
Because User.Read is a low-privilege, read-only permission that users would normally consent to themselves with a single click, granting admin consent on their behalf does not expand the scope of what the application can access — it simply removes the per-user prompt.
Instructions for granting admin consent are included in Step 6 below.
Step-by-Step Instructions #
All steps are carried out in the Azure Portal (portal.azure.com). You will need a role of Application Administrator or Global Administrator in your tenant.
Step 1 — Open Microsoft Entra ID #
- Sign in to portal.azure.com.
- In the search bar at the top, type Microsoft Entra ID and select it from the results.
- Confirm in the Overview blade that you are in the correct tenant. The Tenant ID (a GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) is displayed on this page. Make a note of it — you will need it at the end.
Step 2 — Create a new App Registration #
- In the left-hand menu, select App registrations, then click + New registration at the top of the page.
Complete the registration form as follows:
| Field | Value to enter |
|---|---|
| Name | Enter a descriptive name. Something like VBAuth — Developer Test or VBAuth — Who Am I Test works well. This name is visible only within your Azure Portal. |
| Supported account types | Select Accounts in this organisational directory only (‹your organisation› only — Single tenant). This restricts the app to your own tenant. |
| Redirect URI (optional) | Set the dropdown to Mobile and desktop applications and enter http://localhost in the URI field. |
- Click Register.
Step 3 — Copy the Application (Client) ID #
- After registration, the Overview blade for the new app opens automatically.
- Locate the Application (Client) ID field. Copy this GUID and keep it alongside the Tenant ID you noted in Step 1.
Step 4 — Confirm the User.Read Permission #
Azure adds User.Read as a Delegated Permission automatically when the app is created. You should verify this before proceeding.
In practice, this means that a signed-in user can retrieve a small subset of their own account data — name, email address, and basic profile — and nothing more.
- In the left-hand menu for your new app, select API permissions.
- Confirm that Microsoft Graph — User.Read — Delegated is listed.
- No further permissions need to be added for the initial Who Am I test.
Note: If User.Read is not listed (which would be unusual), click + Add a permission, choose Microsoft Graph, select Delegated permissions, search for User.Read, tick it, and click Add permissions.
Step 5 — Grant Admin Consent (Recommended) #
Granting admin consent for User.Read allows the developer to test with any user account in the tenant without individual consent prompts appearing. This is the recommended approach for the test phase.
- Return to API permissions in the left-hand menu.
- Click Grant admin consent for ‹your organisation›.
- A confirmation dialogue will appear. Click Yes.
- The Status column next to User.Read should change to a green tick with the label Granted for ‹your organisation›.
Step 6 — Send the IDs to the Developer #
At this point the registration is complete. Send the following two values to the developer via your usual secure internal channel:
| Value | Where to find it | Example format |
|---|---|---|
| Tenant (Directory) ID | Microsoft Entra ID — Overview blade | xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
| Application (Client) ID | App registrations — your new app — Overview blade | xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
Note: Neither of these values is a secret. They are identifiers, not credentials. They tell the VBAuth library which tenant and app registration to target, but on their own they grant no access to anything. Even in combination, they can only be used by an authenticated user to retrieve information from their own account.
After the Test #
If the registration is no longer needed, it can be deleted from App registrations in Entra ID by selecting the app and clicking Delete. Deletion is permanent — a manual refresh of the app list may be needed before it disappears from the UI.
Quick Reference #
| What | Where in Azure Portal |
|---|---|
| Create app registration | Microsoft Entra ID → App registrations → + New registration |
| Tenant ID | Microsoft Entra ID → Overview |
| Application (Client) ID | App registrations → ‹your app› → Overview |
| API permissions | App registrations → ‹your app› → API permissions |
| Grant admin consent | App registrations → ‹your app› → API permissions → Grant admin consent |
VBAuth — https://vbauth.com | Copyright © 2025–2026 Peter Bryant (Corylus Business Systems) and Andrew Richards (The IT Service Ltd) | MIT Licence