AW Roles & Attributes
Keycloak custom Roles & Attributes ..
Keycloak Custom Roles
Custom roles in Keycloak provide the identity federation layer that supports PDC's data governance framework. By creating Adventure Works specific roles in Keycloak, we establish the foundation for audit trails, regulatory compliance, and business-aligned data access controls that meet GDPR, CCPA, and SOX requirements.
Log into Keycloak:
Username: admin
Password: admin
Ensure you select the Pentaho Data Catalog Realm.
Select: Realm Roles:
Enter the following:
Role name: aw-system-administrator
Description: Adventure Works enterprise data governance with full compliance oversight.

Click Save.
Click on Attributes.

Add the following attributes:
aw-system-administrator
business_function
data_governance_administration
compliance_scope
gdpr,ccpa,lgpd,sox
data_access_level
governance_oversight
audit_category
administrative
retention_policy
permanent_governance_records

Click: Save
Repeat to create the roles and add the attributes:
Click: Create role
Enter: Role name: aw-data-steward
Description: Adventure Works cross-domain data quality and governance oversight
business_function
data_stewardship
compliance_scope
gdpr,ccpa,data_quality
data_access_level
metadata_governance
audit_category
stewardship
retention_policy
7_years_governance

Role Attribute Suggestions:
So what's missing?
HR_Managers
Sales_Managers
You should assign appropriate roles to HR_Managers and Sales_Managers groups to complete your role structure.
aw-sales-manager (new role):
{
"compliance_scope": ["gdpr_legitimate_interest", "ccpa_business_purpose"],
"data_domains": ["sales", "customer", "product_catalog", "revenue_analytics"],
"data_access_level": ["sales_management_oversight"],
"retention_policy": ["7_years_customer_relationship"],
"business_function": ["sales_management"],
"audit_category": ["management_analytics"],
"special_permissions": ["team_performance", "revenue_forecasting"]
}
aw-hr-manager (new role):
{
"compliance_scope": ["gdpr_employment_data", "employment_law"],
"data_domains": ["human_resources", "employee_personal_data", "performance_data"],
"data_access_level": ["hr_management_oversight"],
"retention_policy": ["30_years_employment_law"],
"business_function": ["human_resources_management"],
"audit_category": ["employee_management"],
"special_permissions": ["performance_reviews", "compensation_management"]
}
Last updated
Was this helpful?