---
title: "View source for System Settings/02 User Management - DreamFactory Wiki"
source: "http://wiki.dreamfactory.com/index.php?action=edit&title=System_Settings%2F02_User_Management"
canonical_url: "http://wiki.dreamfactory.com/index.php?action=edit&title=System_Settings%2F02_User_Management"
converted_at: "2026-04-17T05:35:07.272Z"
format: "markdown"
converted_by: "html-to-md-ai"
---
[]()
	
	
	
	# View source for System Settings/02 User Management

	
		
		← [System Settings/02 User Management](/System_Settings/02_User_Management)
		
		
		
		[Jump to navigation](#mw-head)
		[Jump to search](#searchInput)
		You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: [Users](/index.php?title=DreamFactory_Wiki:Users&action=edit&redlink=1).

---

You can view and copy the source of this page.

{{#seo:
|title=02 User Management - DreamFactory Documentation
|title_mode=replace
|canonical=https://wiki.dreamfactory.com/System_Settings/02_User_Management
|og:title=02 User Management
|og:type=article
|og:site_name=DreamFactory Documentation
}}
'''Manage users and admins via the System API with endpoints for creating, updating, and deleting accounts'''

&lt;span id="user-management">&lt;/span>
= User Management =

Users and Admins can be managed using the &lt;code>/system/user&lt;/code> and &lt;code>/system/admin&lt;/code> endpoints respectively.

For the below examples, replace &lt;code>user&lt;/code> with &lt;code>admin&lt;/code> when managing admins.

&lt;span id="get-user-admin-details">&lt;/span>
== Get User / Admin Details ==

'''Endpoint:''' &lt;code>GET https://{url}/api/v2/system/user&lt;/code>

'''Curl Equivalent:'''

&lt;syntaxhighlight lang="bash">curl -X GET "https://{url}/api/v2/system/user" -H "accept: application/json" \
-H "X-DreamFactory-Session-Token: &lt;session_token>"&lt;/syntaxhighlight>
You can retrieve an individual user / admin's details using the &lt;code>?ids=&amp;lt;id_number&amp;gt;&lt;/code> parameter. If you don't know the id number off hand, you can filter by any field which you do know, such as an email address by using the filter parameter. For example:

&lt;syntaxhighlight lang="text">https://{url}/api/v2/system/user?filter=email=tomo@example.com&lt;/syntaxhighlight>
&lt;span id="creating-a-user-admin">&lt;/span>
== Creating a User / Admin ==

&lt;span id="without-email-invitation">&lt;/span>
=== Without Email Invitation ===

'''Endpoint:''' &lt;code>POST https://{url}/api/v2/system/user&lt;/code>

You will need to provide your session token in a &lt;code>X-DreamFactory-Session-Token&lt;/code> header.

'''Request Body:'''

&lt;syntaxhighlight lang="json">{
  "resource": [
    {
      "name": "display_name",           // Required field
      "first_name": "first_name",
      "last_name": "user_last_name",
      "email": "email_address",         // Required field
      "password": "password"
    }
  ]
}&lt;/syntaxhighlight>
'''Curl Equivalent:'''

&lt;syntaxhighlight lang="bash">curl -X POST "https://&lt;url>/api/v2/system/user" \
-H "accept: application/json" -H "Content-Type: application/json" \
-H "X-DreamFactory-Session-Token: &lt;sessionToken>" \
-d "{\"resource\":[{\"name\":\"&lt;display_name>\",\"first_name\":\"&lt;first_name>\",\"last_name\":\"&lt;last_name>\",\"email\":\"&lt;email_address>\",\"password\":\"&lt;password>\"}]}"&lt;/syntaxhighlight>
&lt;span id="with-email-invitation">&lt;/span>
=== With Email Invitation ===

'''Endpoint:''' &lt;code>POST https://{url}/api/v2/system/user?send_invite=true&lt;/code>

'''Request Body:'''

&lt;syntaxhighlight lang="json">{
  "resource": [
    {
      "name": "display_name",           // Required field
      "first_name": "first_name",
      "last_name": "user_last_name",
      "email": "email_address",         // Required field
    }
  ]
}&lt;/syntaxhighlight>
'''Curl Equivalent:'''

&lt;syntaxhighlight lang="bash">curl -X POST "https://&lt;url>/api/v2/system/user?send_invite=true" \
-H "accept: application/json" -H "Content-Type: application/json" \
-H "X-DreamFactory-Session-Token: &lt;sessionToken>" \
-d "{\"resource\":[{\"name\":\"&lt;userName>\",\"first_name\":\"&lt;firstName>\",\"last_name\":\"&lt;lastName>\",\"email\":\"&lt;emailAddress>\"}]}"&lt;/syntaxhighlight>
&lt;span id="updating-a-user-admin">&lt;/span>
== Updating a User / Admin ==

To update a pre-existing User / Admin, a PATCH request can be made referencing the ID of the user to be changed with the &lt;code>?ids=&amp;lt;ID&amp;gt;&lt;/code> parameter. You will need to provide your session token in a &lt;code>X-DreamFactory-Session-Token&lt;/code> header.

'''Endpoint:''' &lt;code>PATCH https://{url}/api/v2/system/user?ids=&amp;lt;ID_number&amp;gt;&lt;/code>

'''Request Body:'''

&lt;syntaxhighlight lang="json">{
  "resource": [
    {
     "field_to_change": "value",
     ...
    }
  ]
}&lt;/syntaxhighlight>
'''Curl Equivalent:'''

&lt;syntaxhighlight lang="bash">curl -X PATCH "https://{url}/api/v2/system/user?ids=&lt;ID_number>" \
-H "accept: application/json" -H "Content-Type: application/json" \
-H "X-DreamFactory-Session-Token: &lt;session_token>" \
-d "{\"resource\":[{\"&lt;field_to_update\":\"value\"}]}"&lt;/syntaxhighlight>
&lt;span id="deleting-a-user-admin">&lt;/span>
== Deleting a User / Admin ==

To delete a pre-existing User / Admin, simply send a delete request with the corresponding user ID by using the &lt;code>?ids=&amp;lt;ID&amp;gt;&lt;/code> parameter.

'''Endpoint:''' &lt;code>DELETE https://{url}/api/v2/system/user?ids=&amp;lt;ID_number&amp;gt;&lt;/code>

'''Curl Equivalent:'''

&lt;syntaxhighlight lang="bash">curl -X DELETE "https://{url}/api/v2/system/user?ids=&lt;ID_number>" \
-H "accept: application/json" -H "Content-Type: application/json" \
-H "X-DreamFactory-Session-Token: &lt;session_token>"&lt;/syntaxhighlight>

== See also ==
* [[System_Settings/05_Api_Key_Management|API Key Management]]
* [[System_Settings/01_System_Api_Brief|Using the System APIs]]
* [[System_Settings/04_Role_Management|Role Management]]
* [[System_Settings/03_Service_Management|Service Management]]

[[Category:User_Management]]
[[Category:Admin_Api]]
[[Category:System_Api]]
[[Category:API]]
[[Category:Difficulty_Intermediate]]

[[Category:API]]
Return to [System Settings/02 User Management](/System_Settings/02_User_Management).

Retrieved from "[https://wiki.dreamfactory.com/System_Settings/02_User_Management](https://wiki.dreamfactory.com/System_Settings/02_User_Management)"