Forum Discussion

jordanepotter's avatar
13 years ago

How do I set the nickname using rest?

I am trying to test the set/login rest call. I thought set/login was for changing the nickname, but when I do this call:

 

http://<companyhostname>/usaa/restapi/vc/users/id/<userId>/login/set?value=<newLogin>&restapi.session_key=<sessionKey>

 

I get this response:

 

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<response status="error">

  <error code="303">

    <message>attempt to change password in sso community.  User login: 6001</message>

  </error>

</response>

 

How do I set the nickname using rest?

  • The same error is occurred for me too. Does anybody know the reason?

     

    In any case, does lithium allow to change user's login name if SSO feature is enabled?

     

    • AdamN's avatar
      AdamN
      Khoros Oracle

      The error message is somewhat misleading, but it's occuring because you're attempting to update a field that the application believes is being managed via SSO. When Lithium SSO is enabled, the login name and e-mail address should be set and updated via the SSO token. If you need to do this on demand, rather than waiting for the user to authenticate to the community, you can issue a login request to the REST API using an SSO token containing the users's SSO ID and their current e-mail address and login name.