You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/entra/entra-id/users-groups-entra-apis/authorization-requestdenied-403-error-add-user-group.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,15 +33,13 @@ When you try to add a user to a group using Microsoft Graph API, you receive the
33
33
34
34
This issue might occur if the group you tried to add the user to can't be managed by Microsoft Graph. Microsoft Graph only supports Microsoft 365 groups and Security groups.
35
35
36
-
For the Microsoft Graph supported group types, see [Working with groups in Microsoft Graph](/graph/api/resources/groups-overview#group-types-in-microsoft-entra-id-and-microsoft-graph).
37
-
38
36
## Solution
39
37
40
38
### Step 1: Check the group type
41
39
42
40
Make sure that the group you trying to modify is supported by Microsoft Graph.
43
41
44
-
1. In Microsoft Graph, the type of group can be identified by the settings of its `groupTypes`, `mailEnabled`, and `securityEnabled` properties. Use the [Microsoft Graph Explorer](https://developer.microsoft.com/graph/graph-explorer)tool to check the group's attributes:
42
+
1. In Microsoft Graph, the type of group can be identified by the settings of its `groupTypes`, `mailEnabled`, and `securityEnabled` properties. Use the [Microsoft Graph Explorer](https://developer.microsoft.com/graph/graph-explorer) to check the group's attributes:
@@ -60,7 +58,7 @@ Make sure that the group you trying to modify is supported by Microsoft Graph.
60
58
61
59
```
62
60
63
-
2. Review the following table to verify if the group type is supported by Microsoft Graph API. In the example response, the "Test group A" group is a security group. For more information, see [Working with groups in Microsoft Graph](/graph/api/resources/groups-overview).
61
+
2. Review the following table to verify if the group type is supported by Microsoft Graph API. In the example response, the "Test group A" group is a Distribution group that cannot be supported by Microsoft Graph. For more information, see [Working with groups in Microsoft Graph](/graph/api/resources/groups-overview).
64
62
65
63
| Type |groupTypes | mailEnabled | securityEnabled | Can be managed by using Microsoft Graph APIs |
66
64
|--|--|--|--|--|
@@ -69,15 +67,15 @@ Make sure that the group you trying to modify is supported by Microsoft Graph.
69
67
|[Mail-enabled security groups](/graph/api/resources/groups-overview#security-groups-and-mail-enabled-security-groups)|`[]`|`true`|`true`| No; read-only through Microsoft Graph |
70
68
| Distribution groups |`[]`|`true`|`false`| No; read-only through Microsoft Graph |
71
69
72
-
> [!NOTE]
73
-
> - Group type can't be changed after creation. For more information, see [Edit group settings](/entra/fundamentals/how-to-manage-groups#edit-group-settings).
74
-
> - Dynamic groups (groupTypes contains "DynamicMembership") can't have their membership managed via Microsoft Graph.
70
+
> [!NOTE]
71
+
> - Group type can't be changed after creation. For more information, see [Edit group settings](/entra/fundamentals/how-to-manage-groups#edit-group-settings).
72
+
> - Dynamic groups (groupTypes contains "DynamicMembership") can't have their membership managed via Microsoft Graph.
75
73
76
74
### Step 2: Verify required permissions
77
75
78
76
Different group member types require specific permissions. For user-type membership, ensure that the application or account performing the operation has the `GroupMember.ReadWrite.All` permission.
79
77
80
-
For detailed permission requirements, see [Add members documentation](/graph/api/group-post-members)
78
+
For detailed permission requirements, see [Add members documentation](/graph/api/group-post-members).
81
79
82
80
### Step 3: Check if the group is a role-assignable group
83
81
@@ -86,11 +84,11 @@ For detailed permission requirements, see [Add members documentation](/graph/api
86
84
**Azure portal**
87
85
88
86
1. In the [Azure portal](https://portal.azure.com), go to **Microsoft Entra ID**, select **Groups**, and then select **All groups**.
89
-
1. Locate the target group, select **Properties**. Review the **Microsoft Entra role can be assigned to the group**option.
87
+
1. Locate the target group, select **Properties**. Check if the **Microsoft Entra role can be assigned to the group**setting is set to **Yes**,
90
88
91
-
**Microsoft Graph Explorer:**
89
+
**Microsoft Graph Explorer**
92
90
93
-
Perform the following query and check the `isAssignableToRoles` value.
91
+
Run the following request and check the `isAssignableToRoles` value.
94
92
95
93
```http
96
94
GET https://graph.microsoft.com/v1.0/groups/<group object="" id="">?$select=displayName,groupTypes,mailEnabled,securityEnabled,isAssignableToRole
0 commit comments