You must specify more permissions when granting permssions to a new user

  • 1
  • Problem
  • Updated 10 months ago
  • (Edited)
I want to add a user to a group but I get a "400 BadRequest" response with the message:
You must specify more permissions when granting permssions to a new user.

However, I can't find anything on the internet about this error. Can someone help me with this?

I send the data array below as post body to  
Items(fo52cd34-2355-4b20-91b3-96890a0e75a7)/AccessControls
$data = [
'Principal' => ['Id' => '2bdb8c73-6239-45aa-8fd4-ef90d01cb262'],
'CanUpload' => true,
'CanDownload' => true,
'CanView' => true,
'CanDelete' => true,
'CanManagePermissions' => true,
];
I also tried the same with
'Principal' => ['Email' => 'valid.employee@email.com'],
But I get the same error.
Photo of Rick Cuijpers

Rick Cuijpers

  • 13 Posts
  • 1 Reply Like
  • frustrated

Posted 11 months ago

  • 1
Photo of Rick Cuijpers

Rick Cuijpers

  • 13 Posts
  • 1 Reply Like
I found the problem, I didn't send it as json but as form data.