Skip to content

Commit 12374b5

Browse files
committed
update the solution section
1 parent efd9d1f commit 12374b5

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

support/entra/entra-id/users-groups-entra-apis/authorization-requestdenied-403-error-add-user-group.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,13 @@ When you try to add a user to a group using Microsoft Graph API, you receive the
3333

3434
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.
3535

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-
3836
## Solution
3937

4038
### Step 1: Check the group type
4139

4240
Make sure that the group you trying to modify is supported by Microsoft Graph.
4341

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:
4543

4644
```http
4745
https://graph.microsoft.com/v1.0/groups/<Group Object ID>?$select=displayName,groupTypes,mailEnabled,securityEnable
@@ -60,7 +58,7 @@ Make sure that the group you trying to modify is supported by Microsoft Graph.
6058
6159
```
6260

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).
6462

6563
| Type |groupTypes | mailEnabled | securityEnabled | Can be managed by using Microsoft Graph APIs |
6664
|--|--|--|--|--|
@@ -69,15 +67,15 @@ Make sure that the group you trying to modify is supported by Microsoft Graph.
6967
| [Mail-enabled security groups](/graph/api/resources/groups-overview#security-groups-and-mail-enabled-security-groups) | `[]` | `true` | `true` | No; read-only through Microsoft Graph |
7068
| Distribution groups | `[]` | `true` | `false` | No; read-only through Microsoft Graph |
7169

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.
7573
7674
### Step 2: Verify required permissions
7775

7876
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.
7977

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).
8179

8280
### Step 3: Check if the group is a role-assignable group
8381

@@ -86,11 +84,11 @@ For detailed permission requirements, see [Add members documentation](/graph/api
8684
**Azure portal**
8785

8886
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**,
9088

91-
**Microsoft Graph Explorer:**
89+
**Microsoft Graph Explorer**
9290

93-
Perform the following query and check the `isAssignableToRoles` value.
91+
Run the following request and check the `isAssignableToRoles` value.
9492

9593
```http
9694
GET https://graph.microsoft.com/v1.0/groups/<group object="" id="">?$select=displayName,groupTypes,mailEnabled,securityEnabled,isAssignableToRole

0 commit comments

Comments
 (0)