question

HariHaran-3313 avatar image
0 Votes"
HariHaran-3313 asked CarlZhao-MSFT commented

How to enable "allowExternalSenders" using graph api

The application has application permission: Group.ReadWrite.All, Directory.ReadWrite.All

However when i try to run

PATCH https://graph.microsoft.com/v1.0/groups/cc54c2e----

Body:
{
"allowExternalSenders":true

}

It gives me an error:

{
"error": {
"code": "ErrorGroupsAccessDenied",
"message": "User does not have permissions to execute this action.",

microsoft-graph-groupsazure-ad-group-management
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @HariHaran-3313
Would you please provide us with an update on the status of your issue?

0 Votes 0 ·
ShivamDhiman-1582 avatar image
0 Votes"
ShivamDhiman-1582 answered ShivamDhiman-1582 edited

Hi @HariHaran-3313,

To allowExternalSenders property you need to provide these three permissions Group.ReadWrite.All, Directory.ReadWrite.All, Directory.AccessAsUser.All as mentioned in MS documentation.
Attaching the screenshot of my test.
174920-ci.png

Note : Only a subset of the group API pertaining to core group administration and management support application and delegated permissions. All other members of the group API, including updating autoSubscribeNewMembers, support only delegated permissions. As mentioned here In Ms known issue.

If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have further questions about this answer, please click "Comment".



ci.png (85.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

michev avatar image
0 Votes"
michev answered

As noted in the documentation, some operations are only supported for delegate permissions, not application ones. In addition, updating this property is only supported on Microsoft 365 Groups, no other groups types.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.