Skip to content

Latest commit

 

History

History
127 lines (117 loc) · 3.54 KB

File metadata and controls

127 lines (117 loc) · 3.54 KB

Example groups.json

Additional properties will be added in the future.

A security group with static membership

{   
    "displayName": "Some group",
    "description": "This is a security group",
    "groupTypes": [],        
    "securityEnabled": true,
    "mailEnabled": false,
    "mailNickname": "someGroupForMembers",
    "members": ["[email protected]"],
    "owners": ["[email protected]"],
    "present": true
}

A security group with static membership to be created in an administrative unit

{   
    "displayName": "Some group",
    "description": "This is a security group",
    "groupTypes": [],        
    "securityEnabled": true,
    "mailEnabled": false,
    "mailNickname": "someGroupForMembers",
    "members": ["[email protected]"],
    "owners": ["[email protected]"],
    "administrativeUnit": "TestAU",
    "present": true
}

A privileged access group which is assignableToRole

{   
    "displayName": "Some group",
    "description": "This is a security group",
    "groupTypes": [],        
    "securityEnabled": true,
    "mailEnabled": false,
    "privilegedAccess": true,
    "isAssignableToRole": true,
    "mailNickname": "someGroupForMembers",
    "present": true
}

A security group with dynamic membership

{   
    "displayName": "Some group with dynamic membership",
    "description": "This is a security group",
    "groupTypes": ["dynamicMembership"],        
    "securityEnabled": true,
    "mailEnabled": false,
    "mailNickname": "someDynamicGroup",
    "membershipRule" : "(user.userPrincipalName -match \".*@domain.com$\"",
    "owners": ["[email protected]"],
    "present": true
}

A Microsoft 365 group with static membership

{   
    "displayName": "Some group with dynamic membership",
    "description": "This is a security group",
    "groupTypes": ["Unified"],
    "securityEnabled": false,
    "mailEnabled": true,
    "visibility": "Public",
    "mailNickname": "someDynamicGroup",
    "members": ["[email protected]"],
    "owners": ["[email protected]"],
    "present": true
}

A Microsoft 365 group with dynamic membership

{   
    "displayName": "Some group with dynamic membership",
    "description": "This is a security group",
    "groupTypes": ["Unified", "DynamicMembership"],
    "securityEnabled": false,
    "mailEnabled": true,
    "visibility": "HiddenMembership",
    "mailNickname": "someDynamicGroup",
    "membershipRule" : "(user.userPrincipalName -match \".*@domain.com$\"",
    "members": ["[email protected]"],
    "owners": ["[email protected]"],
    "present": true
}

A security group with static membership and assignedLicenses

{   
    "displayName": "Some group",
    "description": "This is a security group",
    "groupTypes": [],        
    "securityEnabled": true,
    "mailEnabled": false,
    "mailNickname": "someGroupForMembers",
    "members": ["[email protected]"],
    "owners": ["[email protected]"],
    "assignedLicenses": [
        {
            "skuId": "licenseID",
            "disabledPlans": [
                "disabledPlan1ID",
                "disabledPlan2ID"
            ]
        }
    ],
    "present": true
}

Microsoft Graph resource types and documents

https://docs.microsoft.com/de-de/graph/api/resources/group?view=graph-rest-1.0 https://docs.microsoft.com/de-de/graph/api/group-post-groups?view=graph-rest-1.0&tabs=http

Group types: https://docs.microsoft.com/de-de/graph/api/resources/groups-overview?view=graph-rest-1.0