How can I get API keys access for uaisopenaiplaygroundeastus2

Sampath, Kayithi 20 Reputation points
2026-06-17T13:08:30.74+00:00

I am in the middle of ServiceNow automation integration with a AI agent. For accessing open ai,

I need API Keys, I am getting

"You are not authorized to view the keys. Contact the subscription owner for assistance"

Can you please let me know the procedure to get access for those.

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.


Answer accepted by question author

AI answer

2026-06-17T13:08:44.08+00:00

The message indicates lacking permission on the Azure OpenAI resource that backs uaisopenaiplaygroundeastus2. Only users with appropriate RBAC roles on that resource can view API keys.

To get access to the keys, the subscription owner or resource administrator must:

  1. Identify the Azure OpenAI resource
    • In the Azure portal, locate the Azure OpenAI resource that corresponds to uaisopenaiplaygroundeastus2.
  2. Assign appropriate role-based access control (RBAC)
    • On the Azure OpenAI resource, go to Access control (IAM).
    • Assign a role that allows key access (for example, a role that grants permissions to manage or read keys on the resource) to the user or group that needs to see the keys.
    • RBAC is required to create and manage Azure OpenAI resources and deployments, and the same access governs who can view keys.
  3. Retrieve the API key and endpoint (once access is granted)
    • After the correct role is assigned, open the Azure OpenAI resource in the Azure portal.
    • Go to Resource management > Keys & Endpoint.
    • Copy KEY1 or KEY2 and the endpoint URL from this page. These are used by the AI agent integration.

If not the subscription owner or resource admin, contact that person or team and request they either:

  • Grant the necessary RBAC role on the Azure OpenAI resource, or
  • Retrieve the API key and endpoint from Keys & Endpoint and provide them securely.

For security, API keys should not be embedded directly in code or shared broadly; they should be stored securely (for example, in Azure Key Vault) and rotated using the two-key mechanism (KEY1/KEY2).


References:

AI-generated content may be incorrect. Read our transparency notes for more information.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Oldest
  1. Anshika Varshney 15,625 Reputation points Microsoft External Staff Moderator
    2026-06-18T09:56:45.2433333+00:00

    Hello @Sampath, Kayithi

    The message:

    "You are not authorized to view the keys. Contact the subscription owner for assistance."

    typically indicates that your account does not have sufficient permissions to view the Azure OpenAI resource keys.

    To access the API keys, you'll need appropriate Azure RBAC permissions on the Azure OpenAI resource. Ask your Azure subscription administrator or resource owner to review your access under:

    Azure Portal → Azure OpenAI Resource → Access Control (IAM)

    Users typically need roles such as:

    • Cognitive Services Contributor
    • Contributor
    • Or another custom role that includes permissions to view resource keys

    Once the required permissions are granted, you should be able to access Keys and Endpoint from the Azure OpenAI resource page to retrieve the API key and endpoint.

    If you're unsure whether this is a permissions issue or an Azure OpenAI access issue, could you clarify:

    • Do you already have access to the Azure OpenAI resource itself?
    • Are you able to view the resource in the Azure portal but not the Keys and Endpoint page?
    • Is uaisopenaiplaygroundeastus2 a resource in your organization's subscription, or a resource owned by another team?

    These details will help determine whether the issue is related to RBAC permissions or resource ownership.

    For reference:

    I Hope this helps. Do let me know if you have any further queries.

    Thankyou!

    Was this answer helpful?

    0 comments No comments

Your answer

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