Share via

How to enable "allowExternalSenders" using graph api

Harihara Manigandan T 6 Reputation points
2022-02-16T13:25:24.13+00:00

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 Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph

2 answers

Sort by: Most helpful
  1. Vasil Michev 127K Reputation points MVP Volunteer Moderator
    2022-02-16T14:36:39.693+00:00

    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.

    Was this answer helpful?

    1 person found this answer helpful.

  2. Shivam Dhiman 6,086 Reputation points
    2022-02-16T14:32:33.663+00:00

    Hi @Harihara Manigandan T ,

    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".

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.