---
title: IAM - Role Model
description: Reference
weight: 340
---



## YAML Model

```yaml
- classname: _role
  keyname: my_role_1
  displayname: Demo Role 1
  description: Demo Group 1 for tests
  subgroups: 
	- group03
	- group04
  users: 
	# not recommended ; use subgroups instead
	- t.robinson
  permissions:
	- p_user_read
	- p_user_write

```

## Predefined Roles for Cavaliba Apps

Cavaliba Appls comes with a set of predefined Roles, which provide reasonable permissions package. 

You can create additional roles and assign custom sets of permissions.