# What params are needed for management api call to add permissions to a user

**URL:** <https://community.auth0.com/t/what-params-are-needed-for-management-api-call-to-add-permissions-to-a-user/105667>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [April 27, 2023, 5:43pm UTC](https://community.auth0.com/t/what-params-are-needed-for-management-api-call-to-add-permissions-to-a-user/105667 "2023-04-27T17:43:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![meaganh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/meaganh/32/42375_2.png) [@meaganh](https://community.auth0.com/u/meaganh)\
**Post date:** [April 27, 2023, 5:43pm UTC](https://community.auth0.com/t/what-params-are-needed-for-management-api-call-to-add-permissions-to-a-user/105667/1 "2023-04-27T17:43:17Z")

</div>

For the management api I want to add a permission to a user.  
I got the current permissions, and tried to use the returned data structure as the input for adding permissions but I get an invalid json format error.

I am using the Auth0 Management Api though the website: [https://auth0.com/docs/api/management/v2#!/Users/post\_permissions](https://auth0.com/docs/api/management/v2#!/Users/post_permissions)

And the documentation only shows this  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/f/af18bddf7f6865e18cd4d2c9772b8da295510cff.png)  
for what to add to body.

What is Object?

 ![image](https://global.discourse-cdn.com/auth0/original/3X/c/3/c3ee85f6d7926c7006822a3a115f661f6895e5cb.png)

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [April 28, 2023, 12:46am UTC](https://community.auth0.com/t/what-params-are-needed-for-management-api-call-to-add-permissions-to-a-user/105667/3 "2023-04-28T00:46:03Z")

</div>

Hi @meaganh,

Thanks for reaching out to the Auth0 Community!

When calling the Management API’s [Assign Permissions to a User endpoint](https://auth0.com/docs/api/management/v2#!/Users/post_permissions), the body of the request should look something like the following:

```auto
{
  "permissions":[
  {
    "permission_name": "read:users",
    "resource_server_identifier": "https://www.my-api.example.com"
  }
]
}

```

I hope this helps!

Please reach out if you have any additional questions.

Thanks,  
Rueben

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [May 12, 2023, 12:46am UTC](https://community.auth0.com/t/what-params-are-needed-for-management-api-call-to-add-permissions-to-a-user/105667/4 "2023-05-12T00:46:57Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
