# 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="/files/mRD1qaANd5EU1JHbEwcE" 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="/files/TC6eiJ4XFx4YZpKanpDq" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mydbsync.com/cloud-workflow/troubleshooting/microsoft-finance-and-operations-401-error.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
