Skip to content

implement new 1.9.20-fixed api - createUser, setUserRoleOnProject #141

Open
@lczub

Description

@lczub

implement new 1.9.20-fixed api - createUser, setUserRoleOnProject

related TL Mantis Task

  • 8967: [API - XMLRPC] Allow to set a leader on a project using XML-RPC API

new api

  • createUser, setUserRoleOnProject

    /**
     * Create a new user
     *
     * Restricted to site admin
     *
     * @param struct $args
     * @param string $args["devKey"]
     * @param string $args["login"]
     * @param string $args["firstname"]
     * @param string $args["lastname"]
     * @param string $args["email"]
     * @param string $args["password"] - OPTIONAL
     *               
     *
     * @return ID the new user if OK, otherwise error structure
     *
     * @access public
     */
    public function createUser($args) {
    /**
     * Set a role to a user at project level
     *
     * Restricted to users with System Wide Role Admin
     *
     * @param struct $args
     * @param struct $args["userid"]
     * @param struct $args["rolename"]
     * @param struct $args["testprojectid"]
     *
     * @return true if OK, otherwise error structure
     *
     * @access public
     */
    public function setUserRoleOnProject($args)

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions