π§ 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
- Located in: π Microsoft Entra ID Guest Users restricted to their own directory objects π’
Flagsβ
- π’ Logic test success
- π’ Logic with extracts
- π’ Logic with test data
Input Typeβ
Type | API Name | Extracts | Extract Files | Logic Files | |
---|---|---|---|---|---|
π | π Azure Active Directory | CA10__CaAzureActiveDirectory__c | 4 |
Usesβ
Test Results π’β
Generated at: 2025-04-24T23:45:31.572196398Z 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β
File | MD5 | |
---|---|---|
Open | /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/policy.yaml | 0FC118F601629447B913060C5E022AC0 |
Open | /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml | 6C739FA73A7EA12D4BEBB4285749A6A2 |
Open | /types/CA10Z1__CaAzureActiveDirectoryAuthPolicy__c/object.extracts.yaml | 0D0D0A881B5C2BBE41D5A8A7C629F5FD |
Open | /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/test-data.json | 89D62C9E78AB8CA068A9483524451D67 |
Generate FULL scriptβ
java -jar repo-manager.jar policies generate FULL /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml
Generate DEBUG scriptβ
java -jar repo-manager.jar policies generate DEBUG /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml
Generate CAPTURE_TEST_DATA scriptβ
java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml
Generate TESTS scriptβ
java -jar repo-manager.jar policies generate TESTS /ce/ca/azure/microsoft-entra-id/guest-users-restricted-to-their-own-directory/prod.logic.yaml
Execute testsβ
java -jar repo-manager.jar 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."