Skip to content

Latest commit

 

History

History
155 lines (120 loc) · 7.94 KB

role-based-access-control.md

File metadata and controls

155 lines (120 loc) · 7.94 KB
title titleSuffix description author ms.author manager ms.service ms.subservice ms.date ms.topic
LUIS role-based access control
Azure AI services
Use this article to learn how to add access control to your LUIS resource
aahill
aahi
nitinme
azure-ai-language
azure-ai-luis
01/19/2024
conceptual

LUIS role-based access control

[!INCLUDE deprecation notice]

LUIS supports Azure role-based access control (Azure RBAC), an authorization system for managing individual access to Azure resources. Using Azure RBAC, you assign different team members different levels of permissions for your LUIS authoring resources. See the Azure RBAC documentation for more information.

Enable Microsoft Entra authentication

To use Azure RBAC, you must enable Microsoft Entra authentication. You can create a new resource with a custom subdomain or create a custom subdomain for your existing resource.

Add role assignment to Language Understanding Authoring resource

Azure RBAC can be assigned to a Language Understanding Authoring resource. To grant access to an Azure resource, you add a role assignment.

  1. In the Azure portal, select All services.

  2. Select Azure AI services, and navigate to your specific Language Understanding Authoring resource.

    [!NOTE] You can also set up Azure RBAC for whole resource groups, subscriptions, or management groups. Do this by selecting the desired scope level and then navigating to the desired item. For example, selecting Resource groups and then navigating to a specific resource group.

  3. Select Access control (IAM) on the left navigation pane.

  4. Select Add, then select Add role assignment.

  5. On the Role tab on the next screen, select a role you want to add.

  6. On the Members tab, select a user, group, service principal, or managed identity.

  7. On the Review + assign tab, select Review + assign to assign the role.

Within a few minutes, the target will be assigned the selected role at the selected scope. For help with these steps, see Assign Azure roles using the Azure portal.

LUIS role types

Use the following table to determine access needs for your LUIS application.

These custom roles only apply to authoring (Language Understanding Authoring) and not prediction resources (Language Understanding).

Note

  • Owner and Contributor roles take priority over the custom LUIS roles.
  • Microsoft Entra ID (Azure Microsoft Entra ID) is only used with custom LUIS roles.
  • If you are assigned as a Contributor on Azure, your role will be shown as Owner in LUIS portal.

Cognitive Services LUIS Reader

A user that should only be validating and reviewing LUIS applications, typically a tester to ensure the application is performing well before deploying the project. They may want to review the application’s assets (utterances, intents, entities) to notify the app developers of any changes that need to be made, but do not have direct access to make them.

:::row::: :::column span=""::: Capabilities :::column-end::: :::column span=""::: API Access :::column-end::: :::row-end::: :::row::: :::column span=""::: * Read Utterances * Intents * Entities * Test Application :::column-end::: :::column span=""::: All GET APIs under: * LUIS Programmatic v3.0-preview * LUIS Programmatic v2.0 APIs

  All the APIs under: 
    * LUIS Endpoint APIs v2.0
    * [LUIS Endpoint APIs v3.0](/rest/api/cognitiveservices-luis/runtime/operation-groups?view=rest-cognitiveservices-luis-runtime-v3.0&preserve-view=true)
  All the Batch Testing Web APIs
:::column-end:::

:::row-end:::

Cognitive Services LUIS Writer

A user that is responsible for building and modifying LUIS application, as a collaborator in a larger team. The collaborator can modify the LUIS application in any way, train those changes, and validate/test those changes in the portal. However, this user wouldn't have access to deploying this application to the runtime, as they may accidentally reflect their changes in a production environment. They also wouldn't be able to delete the application or alter its prediction resources and endpoint settings (assigning or unassigning prediction resources, making the endpoint public). This restricts this role from altering an application currently being used in a production environment. They may also create new applications under this resource, but with the restrictions mentioned.

:::row::: :::column span=""::: Capabilities :::column-end::: :::column span=""::: API Access :::column-end::: :::row-end::: :::row::: :::column span=""::: * All functionalities under Cognitive Services LUIS Reader.

  The ability to add: 
    * Utterances
    * Intents
    * Entities
:::column-end:::
:::column span="":::
  * All APIs under LUIS reader

  All POST, PUT and DELETE APIs under:

    * [LUIS Programmatic v3.0-preview](/rest/api/cognitiveservices-luis/authoring/operation-groups?view=rest-cognitiveservices-luis-authoring-v3.0-preview&preserve-view=true)
    * [LUIS Programmatic v2.0 APIs](/rest/api/cognitiveservices-luis/authoring/operation-groups?view=rest-cognitiveservices-luis-authoring-v2.0&preserve-view=true)

    Except for
    * [Delete application](/rest/api/cognitiveservices-luis/authoring/apps/delete?view=rest-cognitiveservices-luis-authoring-v3.0-preview&tabs=HTTP&preserve-view=true)
    * Move app to another LUIS authoring Azure resource
    * [Publish an application](/rest/api/cognitiveservices-luis/authoring/apps/publish?view=rest-cognitiveservices-luis-authoring-v3.0-preview&tabs=HTTP&preserve-view=true)
    * [Update application settings](/rest/api/cognitiveservices-luis/authoring/apps/update-settings?view=rest-cognitiveservices-luis-authoring-v3.0-preview&tabs=HTTP&preserve-view=true)
    * [Assign a LUIS azure accounts to an application](/rest/api/cognitiveservices-luis/authoring/azure-accounts/assign-to-app?view=rest-cognitiveservices-luis-authoring-v3.0-preview&tabs=HTTP&preserve-view=true)
    * [Remove an assigned LUIS azure accounts from an application](/rest/api/cognitiveservices-luis/authoring/azure-accounts/remove-from-app?view=rest-cognitiveservices-luis-authoring-v3.0-preview&tabs=HTTP&preserve-view=true)
:::column-end:::

:::row-end:::

Cognitive Services LUIS Owner

Note

  • If you are assigned as an Owner and LUIS Owner you will be shown as LUIS Owner in LUIS portal.

These users are the gatekeepers for LUIS applications in a production environment. They should have full access to any of the underlying functions and thus can view everything in the application and have direct access to edit any changes for both authoring and runtime environments.

:::row::: :::column span=""::: Functionality :::column-end::: :::column span=""::: API Access :::column-end::: :::row-end::: :::row::: :::column span=""::: * All functionalities under Cognitive Services LUIS Writer * Deploy a model * Delete an application :::column-end::: :::column span=""::: * All APIs available for LUIS :::column-end::: :::row-end:::

Next steps