diff --git a/docs/resources/user_organization_assignment.md b/docs/resources/user_organization_assignment.md index acbe4520..19407b79 100644 --- a/docs/resources/user_organization_assignment.md +++ b/docs/resources/user_organization_assignment.md @@ -10,7 +10,25 @@ description: |- note: if removed the user role will be reset to 'Organization User' - +## Example Usage + +```terraform +data "env0_user" "user_example" { + email = "example@email.com" +} + +resource "env0_custom_role" "custom_role" { + name = "custom-role" + permissions = [ + "EDIT_PROJECT_SETTINGS" + ] +} + +resource "env0_user_organization_assignment" "user_org" { + user_id = data.env0_user.user_example.id + custom_role_id = env0_custom_role.custom_role.id +} +``` ## Schema