Skip to content

Commit 2652147

Browse files
authored
Merge pull request #218292 from spelluru/patch-139
No Created events for user or group
2 parents 4e27a09 + e52e821 commit 2652147

File tree

1 file changed

+7
-64
lines changed

1 file changed

+7
-64
lines changed

articles/event-grid/azure-active-directory-events.md

Lines changed: 7 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,17 @@ These events are triggered when a [User](/graph/api/resources/user) or [Group](/
1414

1515
| Event name | Description |
1616
| ---------- | ----------- |
17-
| **Microsoft.Graph.UserCreated** | Triggered when a user in Azure AD is created. |
18-
| **Microsoft.Graph.UserUpdated** | Triggered when a user in Azure AD is updated. |
19-
| **Microsoft.Graph.UserDeleted** | Triggered when a user in Azure AD is deleted. |
20-
| **Microsoft.Graph.GroupCreated** | Triggered when a group in Azure AD is created. |
21-
| **Microsoft.Graph.GroupUpdated** | Triggered when a group in Azure AD is updated. |
22-
| **Microsoft.Graph.GroupDeleted** | Triggered when a group in Azure AD is deleted. |
17+
| **Microsoft.Graph.UserUpdated** | Triggered when a user in Azure AD is created and updated. |
18+
| **Microsoft.Graph.UserDeleted** | Triggered when a user in Azure AD is permanently deleted. |
19+
| **Microsoft.Graph.GroupUpdated** | Triggered when a group in Azure AD is created and updated. |
20+
| **Microsoft.Graph.GroupDeleted** | Triggered when a group in Azure AD is permanently deleted. |
21+
22+
> [!NOTE]
23+
> By default, deleting a user or a group is only a soft delete operation, which means that the user or group is marked as deleted but the user or group object still exists. Microsoft Graph sends an updated event when users are soft deleted. To permanently delete a user, navigate to the **Delete users** page in the Azure portal and select **Delete permanently**. Steps to permanently delete a group are similar.
2324
2425
## Example event
2526
When an event is triggered, the Event Grid service sends data about that event to subscribing destinations. This section contains an example of what that data would look like for each Azure AD event.
2627

27-
### Microsoft.Graph.UserCreated event
28-
29-
```json
30-
[{
31-
"id": "00d8a100-2e92-4bfa-86e1-0056dacd0fce",
32-
"type": "Microsoft.Graph.UserCreated",
33-
"source": "/tenants/<tenant-id>/applications/<application-id>",
34-
"subject": "Users/<user-id>",
35-
"time": "2022-05-24T22:24:31.3062901Z",
36-
"datacontenttype": "application/json",
37-
"specversion": "1.0",
38-
"data": {
39-
"changeType": "created",
40-
"clientState": "<guid>",
41-
"resource": "Users/<user-id>",
42-
"resourceData": {
43-
"@odata.type": "#Microsoft.Graph.User",
44-
"@odata.id": "Users/<user-id>",
45-
"id": "<user-id>",
46-
"organizationId": "<tenant-id>",
47-
"eventTime": "2022-05-24T22:24:31.3062901Z",
48-
"sequenceNumber": <sequence-number>
49-
},
50-
"subscriptionExpirationDateTime": "2022-05-24T23:21:19.3554403+00:00",
51-
"subscriptionId": "<microsoft-graph-subscription-id>",
52-
"tenantId": "<tenant-id>
53-
}
54-
}]
55-
```
56-
5728
### Microsoft.Graph.UserUpdated event
5829

5930
```json
@@ -112,35 +83,7 @@ When an event is triggered, the Event Grid service sends data about that event t
11283
}
11384
}]
11485
```
115-
### Microsoft.Graph.GroupCreated event
11686

117-
```json
118-
[{
119-
"id": "00d8a100-2e92-4bfa-86e1-0056dacd0fce",
120-
"type": "Microsoft.Graph.GroupCreated",
121-
"source": "/tenants/<tenant-id>/applications/<application-id>",
122-
"subject": "Groups/<group-id>",
123-
"time": "2022-05-24T22:24:31.3062901Z",
124-
"datacontenttype": "application/json",
125-
"specversion": "1.0",
126-
"data": {
127-
"changeType": "created",
128-
"clientState": "<guid>",
129-
"resource": "Groups/<group-id>",
130-
"resourceData": {
131-
"@odata.type": "#Microsoft.Graph.Group",
132-
"@odata.id": "Groups/<group-id>",
133-
"id": "<group-id>",
134-
"organizationId": "<tenant-id>",
135-
"eventTime": "2022-05-24T22:24:31.3062901Z",
136-
"sequenceNumber": <sequence-number>
137-
},
138-
"subscriptionExpirationDateTime": "2022-05-24T23:21:19.3554403+00:00",
139-
"subscriptionId": "<microsoft-graph-subscription-id>",
140-
"tenantId": "<tenant-id>
141-
}
142-
}]
143-
```
14487
### Microsoft.Graph.GroupUpdated event
14588

14689
```json

0 commit comments

Comments
 (0)