Is there an option to register a user using the REST API and set its position field?
When looking at the API documentation here: Mattermost API Reference
I saw a field name called “props”, and it seems to be undocumented. Can I use it to set the user’s position field?
And another question, what is the purpose of “locale” field?
No, you cannot, props is like an extra field where you can add customize properties to that user.
This is untested but I just looked at the code and did not see any limitation of parameters for the “create a user” API, have you tried simple adding a property called position to your call and see what happens?
To update the position you need to use a second call update that user with:
This is untested but I just looked at the code and did not see any limitation of parameters for the “create a user” API, have you tried simple adding a property called position to your call and see what happens?
I have passed a props value of “position” durring user registration but it did not set the position for that user.
As I had suspected you misunderstood what I said previously.
I said that:
This is untested but I just looked at the code and did not see any limitation of parameters for the “create a user” API, have you tried simple adding a property called position to your call and see what happens?