From a8a2b838f5524a9e959f212b5d9f8a1d4c6f9d4e Mon Sep 17 00:00:00 2001 From: Omri Gazitt Date: Sun, 22 Oct 2023 16:16:26 -0700 Subject: [PATCH] updated citadel data in v3 branch --- assets/citadel/citadel_objects_v2.json | 15 +++++++++----- assets/citadel/citadel_relations_v2.json | 11 ++++++++++ assets/citadel/ds-load/citadel-v2.json | 26 +++++++++++++++++++----- 3 files changed, 42 insertions(+), 10 deletions(-) diff --git a/assets/citadel/citadel_objects_v2.json b/assets/citadel/citadel_objects_v2.json index fc56a50f..fd6e9e1f 100644 --- a/assets/citadel/citadel_objects_v2.json +++ b/assets/citadel/citadel_objects_v2.json @@ -97,7 +97,8 @@ "properties": { "email": "jerry@the-smiths.com", "picture": "https://github.com/aserto-demo/contoso-ad-sample/raw/main/UserImages/Jerry%20Smith.jpg", - "status": "USER_STATUS_ACTIVE" + "status": "USER_STATUS_ACTIVE", + "roles": ["viewer"] } }, { @@ -107,7 +108,8 @@ "properties": { "email": "beth@the-smiths.com", "picture": "https://github.com/aserto-demo/contoso-ad-sample/raw/main/UserImages/Beth%20Smith.jpg", - "status": "USER_STATUS_ACTIVE" + "status": "USER_STATUS_ACTIVE", + "roles": ["viewer"] } }, { @@ -126,7 +128,8 @@ "properties": { "email": "rick@the-citadel.com", "picture": "https://github.com/aserto-demo/contoso-ad-sample/raw/main/UserImages/Rick%20Sanchez.jpg", - "status": "USER_STATUS_ACTIVE" + "status": "USER_STATUS_ACTIVE", + "roles": ["admin", "evil_genius"] } }, { @@ -136,7 +139,8 @@ "properties": { "email": "morty@the-citadel.com", "picture": "https://github.com/aserto-demo/contoso-ad-sample/raw/main/UserImages/Morty%20Smith.jpg", - "status": "USER_STATUS_ACTIVE" + "status": "USER_STATUS_ACTIVE", + "roles": ["editor"] } }, { @@ -146,7 +150,8 @@ "properties": { "email": "summer@the-smiths.com", "picture": "https://github.com/aserto-demo/contoso-ad-sample/raw/main/UserImages/Summer%20Smith.jpg", - "status": "USER_STATUS_ACTIVE" + "status": "USER_STATUS_ACTIVE", + "roles": ["editor"] } }, { diff --git a/assets/citadel/citadel_relations_v2.json b/assets/citadel/citadel_relations_v2.json index eb12b4ea..e36f36e9 100644 --- a/assets/citadel/citadel_relations_v2.json +++ b/assets/citadel/citadel_relations_v2.json @@ -11,6 +11,17 @@ "key": "beth@the-smiths.com" } }, + { + "subject": { + "type": "user", + "key": "beth@the-smiths.com" + }, + "relation": "manager", + "object": { + "type": "user", + "key": "rick@the-citadel.com" + } + }, { "subject": { "type": "user", diff --git a/assets/citadel/ds-load/citadel-v2.json b/assets/citadel/ds-load/citadel-v2.json index e596a518..408b6784 100644 --- a/assets/citadel/ds-load/citadel-v2.json +++ b/assets/citadel/ds-load/citadel-v2.json @@ -98,7 +98,8 @@ "properties": { "email": "jerry@the-smiths.com", "picture": "https://github.com/aserto-demo/contoso-ad-sample/raw/main/UserImages/Jerry%20Smith.jpg", - "status": "USER_STATUS_ACTIVE" + "status": "USER_STATUS_ACTIVE", + "roles": ["viewer"] } }, { @@ -108,7 +109,8 @@ "properties": { "email": "beth@the-smiths.com", "picture": "https://github.com/aserto-demo/contoso-ad-sample/raw/main/UserImages/Beth%20Smith.jpg", - "status": "USER_STATUS_ACTIVE" + "status": "USER_STATUS_ACTIVE", + "roles": ["viewer"] } }, { @@ -127,7 +129,8 @@ "properties": { "email": "rick@the-citadel.com", "picture": "https://github.com/aserto-demo/contoso-ad-sample/raw/main/UserImages/Rick%20Sanchez.jpg", - "status": "USER_STATUS_ACTIVE" + "status": "USER_STATUS_ACTIVE", + "roles": ["admin", "evil_genius"] } }, { @@ -137,7 +140,8 @@ "properties": { "email": "morty@the-citadel.com", "picture": "https://github.com/aserto-demo/contoso-ad-sample/raw/main/UserImages/Morty%20Smith.jpg", - "status": "USER_STATUS_ACTIVE" + "status": "USER_STATUS_ACTIVE", + "roles": ["editor"] } }, { @@ -147,7 +151,8 @@ "properties": { "email": "summer@the-smiths.com", "picture": "https://github.com/aserto-demo/contoso-ad-sample/raw/main/UserImages/Summer%20Smith.jpg", - "status": "USER_STATUS_ACTIVE" + "status": "USER_STATUS_ACTIVE", + "roles": ["editor"] } }, { @@ -180,6 +185,17 @@ "key": "beth@the-smiths.com" } }, + { + "subject": { + "type": "user", + "key": "beth@the-smiths.com" + }, + "relation": "manager", + "object": { + "type": "user", + "key": "rick@the-citadel.com" + } + }, { "subject": { "type": "user",