Fullscreen
[Show/Hide Left Column]
[Show/Hide Right Column]

Users Handler

This handler is for creating new users into Tiki in an automated way, or adding existing users to groups in a simple way.
Creating users in this was may not be secure. Don't use it in a production server.

{REMARKSBOX (title="Notes for changes in Tiki 6" type="info")}
  • Previously each user was type: users, now you can (additionally) use type: user
  • Email can be set and "must change password on first login" enabled on user creation
{REMARKSBOX}

Complete example


YAML
objects:
 -
  type: user
  data: 
    name: aldo
    pass: whatever
    groups: [ group1 ]
 -
  type: user
  data: 
    name: ben
    pass: b-boy
 -
  type: user
  data: 
    name: xavi
 -
  type: users
  data: 
    name: marc
    email: marc@example.com
    change: n
    groups: [ group2 ]


Options

Field NameMandatoryValue
name y Username
pass If no pass is provided, then the pass will be the username
email User's email (no validation message yet)
change User must change password on first login (y/n default: y)
groups User will be assigned to the group or groups listed. If the group doesn't exist previously,the handler will not currently create it (use the Group Handler to create groups).




Page last modified on Tuesday 27 of July, 2010 16:02:42 UTC