Note |
---|
|
Content of this page applies to Apache Syncope <= 1.1.X |
Create a user
To create a user with the REST-interface using curl on the command line:
Where:
- /tmp/newuser is a file containing the definition of the user to create, see below
- admin:password is the username:password combination for accessing the core. (admin/password is default)
- Syncope core runs on localhost:9080/syncope
The file /tmp/newuser could look like this:
Code Block |
---|
{
"id": "0",
"username": "myusername",
"password": "test123",
"attributes" : [
{
"schema": "userId",
"values": ["example1@example.com"]
},
{
"schema": "surname",
"values": ["My Surname"]
}
]
}
|
To link the user to an existing resource, include this in the root json hash:
Code Block |
---|
"resources" : [
"ws-target-resource-1"
]
|
Export database content
Change configuration value