🧠 Microsoft Entra ID Guest Users restricted to their own directory objects - prod.logic.yaml🟢
- Contextual name: 🧠 prod.logic.yaml🟢
- ID:
/ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml - Tags:
Uses
- 📗 Azure Active Directory
- 🔌 Azure Active Directory Auth Policy - object.extracts.yaml
- 🧪 test-data.json
Test Results 🟢
Generated at: 2026-02-07T12:03:00.540390876Z Open
| Result | Id | Condition Index | Condition Text | Runtime Error |
|---|---|---|---|---|
| 🟢 | test1 | ✔️ 199 | ✔️ CA10Z1__Azure_Active_Directory_Auth_Policies__r.has(INCOMPLIANT) | ✔️ null |
| 🟢 | test2 | ✔️ 199 | ✔️ CA10Z1__Azure_Active_Directory_Auth_Policies__r.has(INCOMPLIANT) | ✔️ null |
| 🟢 | test3 | ✔️ 299 | ✔️ CA10Z1__Azure_Active_Directory_Auth_Policies__r.has(COMPLIANT) | ✔️ null |
| 🟢 | test4 | ✔️ 400 | ✔️ otherwise | ✔️ null |
Generation Bundle
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/policy.yaml | F07704577362D14D1F9BBC12A5F57ED6 |
| Open | /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml | 6C739FA73A7EA12D4BEBB4285749A6A2 |
| Open | /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/test-data.json | 89D62C9E78AB8CA068A9483524451D67 |
| Open | /types/CA10Z1__CaAzureActiveDirectoryAuthPolicy__c/object.extracts.yaml | 0D0D0A881B5C2BBE41D5A8A7C629F5FD |
Available Commands
repo-manager policies generate FULL /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml
Content
---
inputType: "CA10__CaAzureActiveDirectory__c"
testData:
- file: "test-data.json"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The role templateId is set to either User or Guest User."
remediationMessage: "Consider updating the templateId to the Restricted Guest User role."
check:
RELATED_LIST_HAS:
status: "INCOMPLIANT"
relationshipName: "CA10Z1__Azure_Active_Directory_Auth_Policies__r"
- status: "COMPLIANT"
currentStateMessage: "The role templateId is set to Restricted Guest User."
check:
RELATED_LIST_HAS:
status: "COMPLIANT"
relationshipName: "CA10Z1__Azure_Active_Directory_Auth_Policies__r"
- status: "UNDETERMINED"
currentStateMessage: "Unable to determine Guest User role."
check:
RELATED_LIST_HAS:
status: "UNDETERMINED"
relationshipName: "CA10Z1__Azure_Active_Directory_Auth_Policies__r"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "The Authorization Policy for Microsoft Entra is not present in the CMDB."
relatedLists:
- relationshipName: "CA10Z1__Azure_Active_Directory_Auth_Policies__r"
importExtracts:
- file: "/types/CA10Z1__CaAzureActiveDirectoryAuthPolicy__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "The role templateId is set to User."
remediationMessage: "Consider updating the templateId to the Restricted Guest User role."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__guestUserRoleId__c"
right:
TEXT: "a0b1b346-4d3e-4e8b-98f8-753987be4970"
- status: "INCOMPLIANT"
currentStateMessage: "The role templateId is set to Guest User."
remediationMessage: "Consider updating the templateId to the Restricted Guest User role."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__guestUserRoleId__c"
right:
TEXT: "10dae51f-b6af-4016-8d66-8c2a99b929b3"
- status: "COMPLIANT"
currentStateMessage: "The role templateId is set to Restricted Guest User."
check:
IS_EQUAL:
left:
EXTRACT: "CA10Z1__guestUserRoleId__c"
right:
TEXT: "2af84b1e-32c8-42b7-82bc-daa82404023b"
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected value in the field."