Forum Discussion

7 Replies

  • Shivshankar Alternatively, APIv2 also offers an option (see CREATE section) to create a new user:

    • /t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collection=users

     

    Regards,

    Christian

  • kavithams's avatar
    kavithams
    Guide
    7 years ago

    I'm trying to create a new user via API and passing the ssoId, login and email values. But get the error saying : user.new_password: error.user.password.blank

     

    As per documentation, for the above method, password is not mandatory.

     

    Example : <#assign userQuery = "/users/add?user.login=abc&user.ssoid=abc&user.email=abc@cisco.com" />

     

    Kindly let us know what the issue is.

  • kavithams's avatar
    kavithams
    Guide
    7 years ago

    Hi TariqHussain,

    we could pass a dummy password. But what happens when the actual user logs into the system later? Will the password be synced with the SSO actual password?

  • TariqHussain's avatar
    TariqHussain
    Boss
    7 years ago

    kavithams- It would not be synced with SSO password.  However, I assume this API bug as in the API user.new_password is optional but it is giving an error in your case. Please pass a dummy password and verify if this is working for you.