Add and Delete User Using REST API In Alfresco | Code Factory





Alfresco One 5.x Developer's Guide : Download.


Log in :

GET /alfresco/s/api/login?u={username}&pw={password?}

Log in and establish a ticket. 
Input
u
cleartext user name (must be URL encoded)
pw
cleartext password (must be URL encoded)
Returns the new authentication ticket. 
The user name and password are provided as URL arguments which may be
logged by proxies or the Alfresco server.




Add Person :

POST /alfresco/s/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.
(NOTE : Add ?alf_ticket='Your Ticket' at the end of the URL)




Delete Person :

DELETE /alfresco/s/api/people/{userName}

Delete a person.

userName
mandatory - the user name for the new user

















Tags :
Alfresco Tutorial
Alfresco REST API
Add Data Using REST API
Remove Data Using REST API

Comments

Popular posts from this blog

How to get IP address and MAC address of client in java | #CodeFactory

At Least One Checkbox Is Checked From All CheckBox Group | #CodeFactory

FTP Connection In Installed Alfresco | Code Factory