Can the CS REST API be used to interact with a user account?

Options

I want to create a system account for my application and use the CS REST API to automatically change its password. Can that be done? I'd need the userID, yes? How would I find that?

If I have a user's username, how would I (or can I) get their userID?

Comments

  • Ferdinand Prantl
    Ferdinand Prantl E Community Moderator
    Options

    Find users, whose name contains "test" by v1/members:

    GET .../api/v1/members?query=test
    

    Change the password of a user with the id 1000 to "new_password":

    PUT .../api/v1/members/1000
    password=new_password