Complete snippets — All code snippets are complete and runnable, showing the full workflow from setup to permission management.
Creating a Tenant
Creating a Tenant
Creating a Dataset
Creating a Dataset
Datasets are the core data containers. Create a dataset with automatic permissions for the creator:
Granting Read Permission
Granting Read Permission
Grant specific permissions to principals. Give read access to a user:
Granting Multiple Permissions
Granting Multiple Permissions
Grant different permission types to the same principal. Give comprehensive access:
Checking User Permissions
Checking User Permissions
Query what datasets a user can access. Check permissions by type:
Complete Permission Setup
Complete Permission Setup
Set up a complete permission scenario from scratch. This example shows the full workflow:
Permission Inheritance Example
Permission Inheritance Example
Demonstrate how permissions flow through the hierarchy. Show tenant and role inheritance:
Multi-tenant Organization Setup
Multi-tenant Organization Setup
Create organization with multiple teams:
Temporary Access Management
Temporary Access Management
Grant temporary access to external contractor:
Cross-team Collaboration
Cross-team Collaboration
Allow teams to collaborate on shared datasets:
Best Practices
Best Practices
Follow these best practices for permission management:
- Start simple — Begin with basic user and dataset creation
- Use roles for teams — Create roles for different job functions
- Grant tenant permissions — Use tenant-level permissions for organization-wide access
- Regular audits — Periodically review and update permissions
- Document access patterns — Keep clear records of who has access to what
- Test permission changes — Verify permissions work as expected after changes