Principal Name Mapping in Databricks Unity Catalog¶
Databricks might not allow certain special characters in user, group, or role names. To ensure that user, group, and role names comply with Databricks Unity Catalog naming conventions, you can congfigure the Databricks Unity Catalog connector to replace specific characters in user, group, or role names using a regular expression (regex).
Setup¶
Configure the properties and restart the connector to apply the changes.
Below is a sample regex pattern that identifies special characters in user, group, or role names:
Text Only | |
---|---|
-
SSH to the instance where Privacera Manager is installed.
-
Run the following command to open the
.yml
file to be edited.If you have multiple connectors, then replace
instance1
with the appropriate connector instance name.Bash -
The regex pattern can be identified using the following properties:
-
String to map the special characters in user, group, or role names.
-
Once the properties are configured, run the following commands to update your Privacera Manager platform instance:
Step 1 - Setup which generates the helm charts. This step usually takes few minutes.
Step 2 - Apply the Privacera Manager helm charts. Step 3 - Post-installation step which generates Plugin tar ball, updates Route 53 DNS and so on.
-
In PrivaceraCloud portal, navigate to Settings -> Applications.
-
On the Connected Applications screen, select Databricks Unity Catalog.
-
Click the pen icon or the Account Name to modify the settings.
-
On the Edit Application screen, go to Access Management -> ADVANCED tab.
-
Enter the regex pattern for the following fields:
- Regex to find special characters in user names: Enter a regex pattern to identify special characters in user names. These characters will be replaced based on the value specified in the
String to replace with the special characters found in user names
field. - Regex to find special characters in group names: Enter a regex pattern to identify special characters in group names. These characters will be replaced based on the value specified in the
String to replace with the special characters found in group names
field. - Regex to find special characters in role names: Enter a regex pattern to identify special characters in role names. These characters will be replaced based on the value specified in the
String to replace with the special characters found in role names
field.
- Regex to find special characters in user names: Enter a regex pattern to identify special characters in user names. These characters will be replaced based on the value specified in the
-
And here provide the replace string
- String to replace with the special characters found in user names: String used to replace the characters found by the regex specified in
Regex to find special characters in user names
. - String to replace with the special characters found in group names: String used to replace the characters found by the regex specified in
Regex to find special characters in group names
. - String to replace with the special characters found in role names: String used to replace the characters found by the regex specified in
Regex to find special characters in role names
.
- String to replace with the special characters found in user names: String used to replace the characters found by the regex specified in
-
Click SAVE to apply the changes.
- Prev topic: Advanced Configuration