# API V2 Create users

**URL:** <https://forum.pydio.com/t/api-v2-create-users/3880>\
**Category:** Development\
**Created:** [June 2, 2021, 7:02am UTC](https://forum.pydio.com/t/api-v2-create-users/3880 "2021-06-02T07:02:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jofernandez](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jofernandez](https://forum.pydio.com/u/jofernandez)\
**Post date:** [June 2, 2021, 7:02am UTC](https://forum.pydio.com/t/api-v2-create-users/3880/1 "2021-06-02T07:02:44Z")

</div>

Hi, I am trying to create users in pydio con api 2.  
I can create user with this API:  
curl -X PUT “[https://ftprueba.com/a/user/test](https://ftprueba.com/a/user/test)” -H “accept: application/json” -H “Content-Type: application/json” -H “Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” -d “{ “Attributes”: {},“Login”:“test”, “Password”: “123456789”, “Uuid”:“DATASOURCE:test”}”  
But this way i have not email and name of other data.  
I try to put atributtes but when i add it dont create user. In the documentation i can not see what attributes there are.  
This is how i try:  
curl -X PUT “ht://ftpprueba.com/a/user/test” -H “accept: application/json” -H “Content-Type: application/json” -H “Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxx” -d “{ “Attributes”{“displayName”: “Test1”,“email”: “[test1@mail.com](mailto:test1@mail.com)”},“Login”:“test”, “Password”: “123456789”, “Uuid”:“DATASOURCE:test”}”  
did Someone try something like this?  
The next pass is to assing worskapce to this user but I dont start with it.  
I want to do a workflow to create users and workspace easty way.  
Thanks  
Jorge

---

<div class="post-metadata">

**Author:** ![jofernandez](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@jofernandez](https://forum.pydio.com/u/jofernandez)\
**Post date:** [June 10, 2021, 9:01am UTC](https://forum.pydio.com/t/api-v2-create-users/3880/2 "2021-06-10T09:01:02Z")

</div>

This finally work with the way i use. I dont have to change anything.  
My doubt now is how to assign users to workflow with api 2.  
Someone know how to do this?
