Azure Map - Which Permissions are needed for Azure-React-Map?

Anisha KC 105 Reputation points Microsoft Employee


I was wondering what permissions are needed when using react-azure-maps? I am using stable v1 release. We are using the anonymous method where we call our API endpoint that gets the token and returns it to the UI.

The API is given the built in "Azure Maps Search and Render Data Reader" role.

For some API calls it returns 200. But, for the tileset APIs it is return 401 errors.

Are there additional permissions needed to add?

(These API calls are auto made by the package when I render the map in a React application)


Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
520 questions
0 comments No comments
{count} votes

Accepted answer
  1. rbrundritt 12,696 Reputation points Microsoft Employee

    The Tilesets API is a part of the "Azure Maps Creator" platform (indoor maps) for which the "Data" roles where created. The Azure Maps Data Reader role is the least privileged role that has access to the data in the Azure Maps Creator platform.

    The Azure Maps Search and Render Data Reader role would work for most other Azure Maps services outside of the Azure Maps Creator platform.

    2 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 9,911 Reputation points

    Hi @Anisha KC Thank you for posting the question here.

    Based on the role definitions from Azure Maps documentation, the Azure Maps Search and Render Data Reader role provides access to only search and render Azure Maps REST APIs to limit access to basic web browser use cases. I appreciate it if you can call the API using the Azure Maps Data Contributor role and see if that helps overcome the 401 issue.