Sort by
Newest
Non-admin user can't add self as group owner during group creation or update
Active: 5 monthsUpdated: September 12, 2024Area:Groups
When a non-admin user calls the Create group API, Update group API, or Upsert group API and adds their user ID in the request body in the owners@odata.bind collection, the request fails with a 400 Bad Request error code with the message "Request contains a property with duplicate values." A non-admin user can't explicitly add themselves as the group owner.
Workaround
There is no workaround for this error.
By default, a non-admin user who is creating a security or Microsoft 365 group through the Create group API or Upsert group API is automatically added to the owners collection of the group, if they don't specify any group owners. If they specify others as group owners, the non-admin group creator is still automatically added to the owners collection of the security group, but not for the Microsoft 365 group. The user still can't add themselves to the owners collection during group update.