# Microsoft Finance & Operations 401 Error

### Introduction

This article guides users through resolving the "Please verify that the user is valid and set up correctly" error in Microsoft Dynamics 365 Finance & Operations (FNO). This error, often accompanied by a 401 Unauthorized response, occurs when the Microsoft Entra ID application is not correctly set up or associated with a valid user account in FNO. Following the steps below will help ensure proper configuration and restore application access.<br>

{% hint style="info" %}
**Error Message**": 401 "Please verify that the user is valid and set up correctly."
{% endhint %}

### Steps to Resolve the Error

**Step 1: Login and Search for Microsoft Entra ID Applications**

* Login to your FNO account using administrator credentials.
* In the search bar, type **"Microsoft Entra ID applications"** and open the option that appears.

<figure><img src="https://1036205596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv9avy716UiAsS24zOznZ%2Fuploads%2FEOc25eOAsGqsYRrNZd7M%2Fimage.png?alt=media&#x26;token=e6689e1a-c472-44e6-ac7e-2271912ef6f3" alt=""><figcaption></figcaption></figure>

**Step 2: Add a New Application Entry**

* Click the **New** button to add a new record in the Microsoft Entra ID applications list.
* Enter the **Client ID** for your application in the respective field.
* Set the **User ID** field to **ADMIN** to associate the application with the administrator account.

<figure><img src="https://1036205596-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fv9avy716UiAsS24zOznZ%2Fuploads%2FwIThdLRI4Gt5BnpzBcne%2Fimage.png?alt=media&#x26;token=eb676793-5974-48ec-b4fa-522e0faaf24a" alt=""><figcaption></figcaption></figure>

**Step 3: Save and Validate Configuration**

* After entering the Client ID and User ID, click **Save** to apply the changes.
* Perform a test login or integration to verify if the error persists.

**Step 4: Troubleshoot Further If Needed**

* Confirm the Client ID exactly matches the one registered in your Azure portal.
* Ensure the ADMIN user account in FNO is active and has the required permissions.
* Check for any conditional access policies or additional security settings that might block authentication.

{% hint style="info" %}
**Note:**

* The **Client ID** is the unique identifier you receive when you create an application in Microsoft Entra (Azure AD).
* The **Name** is a custom, descriptive name you assign to the application within Dynamics 365 Finance & Operations (FNO) for easy identification.
* The **User ID** corresponds to a user in FNO with the appropriate permissions; this can be searched and set according to the permissions granted to each user.
  {% endhint %}
