cancel
Showing results for 
Search instead for 
Did you mean: 

Create Users/Groups and others via REST API

oathmind
Champ on-the-rise
Champ on-the-rise

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 ACCEPTED ANSWER

gdharley
Elite Collaborator
Elite Collaborator

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 answer in original post

1 REPLY 1

gdharley
Elite Collaborator
Elite Collaborator

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