Create Users/Groups and others via REST API

cancel
Showing results for 
Search instead for 
Did you mean: 
oathmind
Active Member

Create Users/Groups and others via REST API

Jump to solution

Hi,

 

i'm trying to create new users and groups via REST API but I don’t find the method.

 

I try:

POST http://localhost:8080/activiti-app/api/enterprise/users?tenantId=1 

{

  "id":"tijs",

  "firstName":"Tijs",

  "lastName":"Barrez",

  "email":"no-reply@alfresco.org",

  "password":"pass123"

}

 

And another things but i get: "Method POST not allowed"

 

I need to create via REST API the following items:

 

- Users

- Groups

- Alfresco endpoint

- WS endpoint

 

but i didn’t find how to in the documentation.

1 Solution

Accepted Solutions
gdharley
Intermediate

Re: Create Users/Groups and others via REST API

Jump to solution

The Enterprise Edition API for user management is documented here:

Alfresco Activiti - Identity Management - Users 

Note that in order to use this API you must include a tenantId as an integer and you must be either a tenant admin or tenant manager.

e.g. POST http://localhost:8080/activiti-app/api/enterprise/admin/users?tenantId=1

Payload: {"email":"doo@bar.com","firstName":"Doo","lastName":"Bar","status":"active","type":"enterprise","password":"doobar","tenantId":1}

Hope this helps,
greg

View solution in original post

1 Reply
gdharley
Intermediate

Re: Create Users/Groups and others via REST API

Jump to solution

The Enterprise Edition API for user management is documented here:

Alfresco Activiti - Identity Management - Users 

Note that in order to use this API you must include a tenantId as an integer and you must be either a tenant admin or tenant manager.

e.g. POST http://localhost:8080/activiti-app/api/enterprise/admin/users?tenantId=1

Payload: {"email":"doo@bar.com","firstName":"Doo","lastName":"Bar","status":"active","type":"enterprise","password":"doobar","tenantId":1}

Hope this helps,
greg