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


Donate : Link

Medium Blog : Link

Applications : Link

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s