From 9f2f9f232b1fd6703e09ad63de1a6b3bdb595862 Mon Sep 17 00:00:00 2001 From: update generated docs action Date: Wed, 30 Nov 2022 07:19:37 +0000 Subject: [PATCH] Update docs --- .../resources/user_organization_assignment.md | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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