Is it possible to create a custom role from "Cognitive Services OpenAI User" to apply for a specific model

louey Bnecheikh lehocine 145 Reputation points
2025-04-02T15:58:48.01+00:00

Hi

There is a limit of 30 azure openai resources per Azure subscription so we are creating numberous deployments in the same resource. Each deployment model is dedicated for a specific customer and we want each customer to access only to its model.

I have seen that the built-in role "Cognitive Services OpenAI User" gives access at the Azure openAi resource scope so to all models in the resource.

Is there a way to customize the role so it can give access only to a specific deployment name ?

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,619 questions
{count} votes

Accepted answer
  1. Saideep Anchuri 9,500 Reputation points Moderator
    2025-04-02T16:15:22.4566667+00:00

    Hi louey Bnecheikh lehocine

    Currently, Azure OpenAI Service doesn’t support you create custom roles that limit access to specific model deployments within a resource. Instead, it has a built-in role called "Cognitive Services OpenAI User", which gives users access to all models inside that resource.

    If you want to control access so that each customer can only use their own model deployment, the best way is to create a separate Azure OpenAI resource for each customer. Then, you can assign them the "Cognitive Services OpenAI User" role at the resource level, making sure they only access their specific model.

    Kindly refer below link: azure-openai-roles

    Hope this helps. Do let us know if you any further queries.

     


    If this answers your query, do click Accept Answer and Yes for was this answer helpful.

    Thank You.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.