"Insufficient Privileges" Error when try to create a new office365 "Unified" Group


  • Hi all, i'll try to introduce my problem.

    I have created a custom C# application, to create programmatically office365 "Unified" Groups, for authentication and the creation of Graph Client i used this sample:

    For the App registration i've create an application on this platform:

    This is my situation: i log in with administrator account and grant the admin-only scopes with a grant access link like this[****]&response_type=code&redirect_uri=[****]%2F&login_hint=[****]&x-client-SKU=MSAL.Desktop&x-client-Ver=

    Then with this account "Admin" i can create Groups and use all Graph functionality.

    If i log in with a user account and try to create a group, the application give to me this error: "insufficient privileges to complete the operation", i need to create a "Unified" group with user accounts.

    I've tried a lot of solutions but no one solved my problem.

    Anyone can help me to solve this?

    Tuesday, March 14, 2017 11:32 AM

All replies

  • Giovanni,

    You will notice that one of the Permissions in your scope is "Directory.AccessAsUser.All" which means that the application will apply the permissions of the User Credentials passed. 

    Scope Permission Description
    Directory.AccessAsUser.All Access directory as the signed-in user

    Allows the app to have the same access to information in the directory as the signed-in user.

    Thus, when you access the App as the Admin, you have all the permissions to perform any task within the tenant.  When you access the App as a normal user, it will default to "Delegated Permissions" (App + User Authorization) specified for the Application.  Please review the following article:

    App-only vs. delegated permissions -

    Also, the Office 365 unified API exposes two permission scopes for unified groups:

    So, you will need to ensure that the user has these permission scopes defined within the Portal under "Delegated Permissions".

    This should resolve your issue. 

    Thank you in advance,


    Wednesday, March 15, 2017 6:33 PM