07-26-2011 06:09 AM
07-26-2011 06:24 AM
If this is not possible through REST apis , is it possible to use alfresco native services (by adding dependencies to the repository, core etc..) to populate the database with my users ?Yes, it is possible using REST and using native exposed services, most of the services are exposed using the following context path:
Update user password
POST /alfresco/service/api/person/changepassword/{userName}
—
Update the password of a current user. It can only be executed for the current user or by an administrator to update any user.
—
Authentication: user
Transaction: required
Format Style: argument
Default Format: json
Id: org/alfresco/repository/person/changepassword.post
Descriptor: classpath:alfresco/templates/webscripts/org/alfresco/repository/person/changepassword.post.desc.xml
Get People
GET /alfresco/service/api/people?filter={filterQuery?}
—
Get a collection of people stored in the repository. This can optionally be filtered according to a given filter query string
—
Authentication: user
Transaction: required
Format Style: argument
Default Format: json
Id: org/alfresco/repository/person/people.get
Descriptor: classpath:alfresco/templates/webscripts/org/alfresco/repository/person/people.get.desc.xml
Add Person
POST /alfresco/service/api/people
—
Adds a new person based on the details provided.
userName
mandatory - the user name for the new user
firstName
mandatory - the given Name
lastName
mandatory - the family name
email
mandatory - the email address
password
optional - the new user's password. If not specified then a value of "password" is used which should be changed as soon as possible.
disableAccount
optional - If present and set to "true" the user is created but their account will be disabled.
quota
optional - Sets the quota size for the new user, in bytes.
groups
optional - Array of group names to assign the new user to.
title
optional - the title for the new user.
organisation
optional - the organisation the new user belongs to.
jobtitle
optional - the job title of the new user.
—
Authentication: admin
Transaction: required
Format Style: argument
Default Format: json
Id: org/alfresco/repository/person/people.post
Descriptor: classpath:alfresco/templates/webscripts/org/alfresco/repository/person/people.post.desc.xml
Delete Person
DELETE /alfresco/service/api/people/{userName}
—
Delete a person.
—
Authentication: admin
Transaction: required
Format Style: argument
Default Format: json
Id: org/alfresco/repository/person/person.delete
Descriptor: classpath:alfresco/templates/webscripts/org/alfresco/repository/person/person.delete.desc.xml
Get Person
GET /alfresco/service/api/people/{userName}
—
Get the details of a person.
—
Authentication: user
Transaction: required
Format Style: argument
Default Format: json
Id: org/alfresco/repository/person/person.get
Descriptor: classpath:alfresco/templates/webscripts/org/alfresco/repository/person/person.get.desc.xml
Update Person
PUT /alfresco/service/api/people/{userName}
—
Update the details of a person.
—
Authentication: user
Transaction: required
Format Style: argument
Default Format: json
Id: org/alfresco/repository/person/person.put
Descriptor: classpath:alfresco/templates/webscripts/org/alfresco/repository/person/person.put.desc.xml
Get sites
GET /alfresco/service/api/people/{userid}/sites?size={pagesize?}&pos={position?}
—
Get a collection of the sites of which a a person is an explicit member.
—
Authentication: user
Transaction: required
Format Style: argument
Default Format: json
Id: org/alfresco/repository/person/person.sites.get
Descriptor: classpath:alfresco/templates/webscripts/org/alfresco/repository/person/person.sites.get.desc.xml
If you need to expose from Alfresco a custom service you can implement your own WebScript using the People API:07-26-2011 07:12 AM
07-26-2011 11:33 AM
07-30-2011 02:48 PM
08-02-2011 09:28 AM
05-22-2012 01:30 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.