Is there a way to change a username?

This topic contains 6 replies, has 2 voices, and was last updated by  Bill Nelson 3 months, 3 weeks ago.

  • Author
    Posts
  • #25681
     mikelane 
    Participant

    A client would like to change their username from whatever@mycompany.com to somethingelse@mycompany.com. I’ve looked over the docs and I haven’t found a way to do this. Any tips?

    #25685
     Bill Nelson 
    Participant

    @mikelane,

    The answer to the question you asked is unequivocally, yes. The userName property is both admin and user editable, the only requirements is that it must be unique and it cannot contain certain characters (i.e. the forward slash character).

    The userName property may be changed via REST or the Admin Console across all IDM product versions. In earlier versions of the product, the user could not change their userName via the End User interface, but that was added recently.

    Hope this helps,

    bill

    #25688
     mikelane 
    Participant

    Hmm. Looks like we only have OpenAM installed, not OpenIDM. REST it is, it seems.

    #25689
     mikelane 
    Participant

    @bill-nelsonidentityfusion-com

    When I attempt to set the username in the REST api, I keep getting this result: '{"code":400,"reason":"Bad Request","message":"id in path does not match id in request body"}'

    Thoughts?

    #25690
     Bill Nelson 
    Participant

    @mikelane,

    Please post your method, url, and payload here and I will take a look.

    I suspect you are making an incorrect REST call.

    bill

    #25691
     mikelane 
    Participant

    Testing this on our QA server. The method is put, url is https://<redacted>.com/openam/json/users/me@me.com, payload is {'username': 'test@me.com'}, and headers is {'iplanetDirectoryPro': <redacted>}. (I did do a get request and I tested a put with a password change and both of those worked fine.)

    • This reply was modified 3 months, 3 weeks ago by  mikelane.
    #25695
     Bill Nelson 
    Participant

    I jumped to the conclusion that you were using IDM since this was posted to the Identity Management forum, my apologies.

    AM is a bit different and while it exposes identity management functionality, it really should not be used as an identity management tool. I don’t currently have AM up and running on any of my test servers so take my next comment with a grain of salt: I don’t believe you can change the username in AM via any interface (AM Admin Console, End User Interface, or REST). Again, the reason being is that AM is not an identity management tool.

    I will ask one of my colleagues that may have AM up and running to confirm my last comment.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

©2019 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?