Tags and Metadata
Overview¶
Tags and Metadata in Privacera's Governance Hub provide a centralized system for creating, managing, and applying classification tags to data assets. This capability enables consistent data governance by allowing you to define reusable tags with custom attributes that can be applied across your entire data ecosystem.
Accessing Tags and Metadata¶
To access the Tags and Metadata management interface:
- Navigate to Governance Hub in the left sidebar
- Select Tags and Metadata
The Tags and Metadata interface displays all defined tags, their configurations, and associated attributes.
Tags and Metadata Interface¶
Search Functionality¶
Use the search bar at the top to filter tags:
- Enter tag names to quickly find specific tags
- Search results update dynamically as you type
- Useful for large tag libraries
Add Tag Button¶
Click the ADD TAG button in the top-right corner to create new tags.
Tag Components¶
Each tag definition includes several key components:
Tag Name¶
- Purpose: Unique identifier for the tag
- Requirements: Must be unique across the system
- Best Practice: Use uppercase, descriptive names (e.g., SENSITIVE, DATA_CLASS, RESTRICTED)
- Example:
SENSITIVE,RESTRICTED,COMPLIANCE_TAG,DATA_QUALITY
Supported Resource Types¶
Defines which types of resources the tag can be applied to:
- All Resources: Tag can be applied to any resource type (databases, schemas, tables, columns, etc.)
- Specific Types: Limit tag application to specific resource types (examples):
database- Database levelschema- Schema leveltable- Table levelcolumn- Column level
Example Configurations:
RESTRICTED→ All Resources: Can be applied at any levelSENSITIVE→ column: Can only be applied to columnsDATA_CLASS→ column, table: Can be applied to columns or tables
Attribute Definitions¶
Attributes define the metadata that must or can be provided when applying the tag:
Attribute Properties¶
Each attribute has the following properties:
- Key: The attribute name/identifier
- Type: Data type of the attribute value
String: Text values, such as names or descriptions.Number: Any numeric value, including decimals.Integer: Whole numbers only (no decimals).Boolean: True/false values to indicate flags or switches.
- Helper Text: Descriptive text to guide users when providing attribute values
- Required: Whether the attribute must be provided when applying the tag
yes: Mandatory fieldno: Optional field
Example Attribute Configurations¶
SENSITIVE Tag:
RESTRICTED Tag:
| Text Only | |
|---|---|
DATA_CATEGORY Tag:
| Text Only | |
|---|---|
COMPLIANCE_TAG:
| Text Only | |
|---|---|
Creating a New Tag¶
To create a new tag:
- Click the ADD TAG button
- Fill in the tag details:
- Tag Name: Enter a unique, descriptive name
- Type: Sensitive, Confidential, Internal or Public
- Description: Provide a clear description of the tag's purpose
- Supported Resource Types: Select which resource types this tag applies to
- Define attributes:
- Click Add Attribute to create attribute definitions
- For each attribute:
- Enter the attribute Key name
- Select the Type
- Add Helper Text (optional but recommended)
- Mark as Required if mandatory
- Click Save to create the tag
Tag Update Limitation
Tags cannot be updated after creation. If you need to modify a tag's configuration (name, type, description, supported resource types, or attributes), you must:
- Delete the existing tag (see Deleting Tags below)
- Create a new tag with the updated configuration
Important considerations:
- When you delete a tag, it will be removed from all resources where it's currently applied
- Before deleting, ensure you have a plan to reapply the tag to necessary resources
- Consider creating the new tag with the updated configuration before deleting the old one to minimize disruption
Deleting Tags¶
To delete a tag:
- Locate the tag in the list
- Click the Delete icon (🗑) in the Actions column
- Confirm the deletion
Tag Deletion Warning
Deleting a tag will:
- Remove the tag from all resources where it's applied
- This action cannot be undone
Common Tag Patterns¶
Data Classification Tags¶
Used to classify data sensitivity levels:
| Text Only | |
|---|---|
| Text Only | |
|---|---|
Compliance and Regulatory Tags¶
Used to mark data subject to regulations:
| Text Only | |
|---|---|
| Text Only | |
|---|---|
Operational Tags¶
Used for data management and operations:
| Text Only | |
|---|---|
| Text Only | |
|---|---|
Domain-Specific Tags¶
Used to classify data by business domain or subject area:
| Text Only | |
|---|---|
| Text Only | |
|---|---|
Tag Governance Best Practices¶
Naming Conventions¶
- Use Uppercase: Tag names should be in uppercase (e.g.,
SENSITIVE, notsensitive) - Be Descriptive: Names should clearly indicate the tag's purpose
- Avoid Abbreviations: Unless they are widely understood in your industry
- Stay Consistent: Maintain naming consistency across similar tags
Attribute Design¶
- Required vs. Optional: Only mark attributes as required if they're essential
- Helper Text: Always provide clear helper text to guide users
- Appropriate Types: Choose the correct data type for each attribute
- Validation: Consider using enums for attributes with predefined values
Resource Type Selection¶
- Be Specific: If a tag only applies to columns, don't allow all resources
- Consider Hierarchy: Tags at higher levels (database, schema) may inherit to lower levels
- Flexibility: Use "All Resources" for tags that legitimately apply everywhere
Integration with Access Management¶
Tags defined in Tags and Metadata can be used directly in access policies:
Tag-Based Policies¶
Create access policies that reference tags:
| Text Only | |
|---|---|
Attribute-Based Conditions¶
Use tag attributes in policy conditions:
| Text Only | |
|---|---|
Dynamic Policies¶
Leverage tag metadata for dynamic policy evaluation:
| Text Only | |
|---|---|
For more information on using tags in access policies, see:
Applying Tags to Resources¶
Tags can be applied to resources through multiple methods:
Manual Tagging in Data Catalog¶
- Navigate to Data Catalog
- Select the resource (table or column)
- Add tags from the available tag library
- Provide required attribute values
- Save the tag application
API-Based Tagging¶
Programmatic Tag Management APIs¶
Privacera provides REST APIs for programmatic tag management, enabling automation and integration with external systems.
Creating Tags via API¶
Use the Metadata Service (MDS) API to create tag definitions programmatically.
API Endpoint:
| Text Only | |
|---|---|
Request Payload:
| JSON | |
|---|---|
Payload Fields:
name(required): Unique name for the tag (e.g., "PII", "DATA_CLASSIFICATION")type(required): Tag classification type. Valid values:Sensitive- For sensitive data requiring protectionConfidential- For confidential business informationInternal- For internal-use dataPublic- For publicly accessible data
description(optional): Description of the tag's purpose and usageattributeDefinitions(optional): Object defining tag attributes- Each attribute has:
type: Data type (string, number, integer, boolean, date, etc.)required: Whether the attribute is mandatory (true/false)description: Description of the attribute
- Each attribute has:
source(required): Origin of the tag creation (e.g., "Portal", "API", "Discovery")
Example - Creating a Data Classification Tag:
Creating Resources via API¶
Before applying tags, ensure resources are registered in the metadata catalog.
API Endpoint:
| Text Only | |
|---|---|
Request Payload:
Payload Fields:
appCode(required): Application identifier for the integrationserviceName(required): Name of the data service (must match configured service)serviceType(required): Type of data source (e.g., "SNOWFLAKE")resources(required): Array of resources to registerresource: Full path to the resource (hierarchical format: database/schema/table/column)resourceType: Type of resource (e.g., "database", "schema", "table", "column", "view", "function")
Applying Tags to Resources via API¶
Associate tags with resources using the tag-resource mapping API.
API Endpoint:
| Text Only | |
|---|---|
Request Payload:
Payload Fields:
tagResourceMappings(required): Array of tag-to-resource mappingstagName(required): Name of the tag to apply (must exist in the system)resourcePath(required): Full path to the resource (must match registered resource)serviceName(required): Name of the data serviceserviceType(required): Type of data sourceappCode(required): Application identifiertagAttributes(optional): Object containing attribute key-value pairs- Keys must match attribute definitions in the tag
- Required attributes must be provided
Example - Bulk Tagging:
API Workflow¶
Complete workflow for programmatic tag management:
-
Create Tag Definition
-
Register Resources
-
Apply Tags to Resources
Related Topics¶
- Data Catalog
- Tag-Based Access Control (TBAC)
- Tag Management
- Data Catalog Integration with Access Tags
- Prev topic: Data Catalog
- Next topic: Access Management