import FeatureAvailability from '@site/src/components/FeatureAvailability';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Access Management
<FeatureAvailability/>
## Introduction
DataHub's Access Management feature allows you to associate external roles from your source systems with your data assets in DataHub. This creates a unified view of access control across your data ecosystem, helping data consumers:
1.**Discover available access** - Find what roles are already provisioned for them across different data platforms
2.**Request appropriate access** - Easily identify and request to join the appropriate role for the access they need
3.**Simplify governance** - Streamline the access management process by centralizing role information in DataHub
By integrating your external roles into DataHub, teams can reduce access request friction and ensure users have the right level of access to the data they need.
If you're using DataHub Cloud, enabling the Access Management feature just requires contacting your DataHub Cloud CustomerSuccess representative. They can enable this feature for your environment without any configuration changes on your part.
This role must then be associated with datasets through a new aspect called access.
:::note Important Note
Currently, only Dataset entities support Access Management.
:::
:::caution Do not confuse role with datahubrole
The "role" entity refers to an external role definition that exists in your source systems (like Snowflake or BigQuery), while "datahubrole" is for the management of privileges within DataHub itself (i.e., the admin role can accept proposed metadata changes).
:::
## Managing Access Through DataHub
You can set up Access Management through either the CLI or Python API. Here's how to complete the three main steps:
### Creating External Roles
<Tabs>
<TabItemvalue="cli"label="CLI">
```bash
datahub put --urn "urn:li:role:reader" --aspect roleProperties -d - <<-EOF
{
"name": "Snowflake Reader Role",
"description": "Description for Snowflake Reader Role",
Here are some common scenarios where integrating external roles into DataHub is valuable:
1.**Unified Access View** - Data engineers can see all users with access to sensitive data across multiple platforms from a single interface
2.**Self-Service Access Requests** - Analysts can discover what roles they need to access specific datasets and request them directly from DataHub
3.**Access Auditing** - Compliance teams can review who has access to which datasets through which roles
4.**Onboarding Acceleration** - New team members can quickly discover what access they need for their role
## Demo and Examples
To see Access Management in action, check out our [DataHub Townhall demo](https://youtu.be/mXsn33tALCA?t=1333) where we showcase how to use this feature in a real-world scenario.
## What's Next for Access Management
Future enhancements planned for Access Management include: