cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
usarif
Level: Powered On

add user to group : bad request 400

hi Folks,
  Trying to add User to group and getting Bad request 400. Here what I am trying to do.
1. Running ' Get User' = Adding my sequence
2. Running 'Get Group' = Adding objected = verified by AzurePowershell Get-AzureADGroup -SearchString 'GroupName'
3. Running 'Add User to Group' = Added Group id from get group and Userid from Get-user.

 

action.jpg

 Getting Error:
 
{
  "error: {
    "code": "Request_BadRequest",
    "message": "Unable to update the specified properties for objects that have originated within an external service.",
    "innerError": {
      "request-id": "063bcdf2-2fa4-43a4-b55e-f1ab64f4d145",
      "date": "2019-12-16T02:36:53"
    }
  }
}

 

STATUSCODE400.png

 

4 REPLIES 4
usarif
Level: Powered On

Re: add user to group : bad request 400

i have verified both object id listed under output of get user and Add user to group through powershell...

 

ps.jpg

 

Community Support Team
Community Support Team

Re: add user to group : bad request 400

Hi @usarif ,

 

The overview article for groups states that mail-enabled security groups cannot be created or managed: https://docs.microsoft.com/en-us/graph/api/resources/groups-overview?view=graph-rest-beta

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

usarif
Level: Powered On

Re: add user to group : bad request 400

I am not creating group but adding member to group

 

what other ways to automate this?

usarif
Level: Powered On

Re: add user to group : bad request 400

how about passing param to Azure runbook and add members in there?

 

Is there any document or example I can view how to pass objected to runbook and add members in runbook?

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,529)