TestLink-API-Python-client icon indicating copy to clipboard operation
TestLink-API-Python-client copied to clipboard

implement new 1.9.20-fixed api - createUser, setUserRoleOnProject

Open lczub opened this issue 4 years ago • 0 comments

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)

lczub avatar Jul 30 '20 18:07 lczub