BIMserver icon indicating copy to clipboard operation
BIMserver copied to clipboard

Updating SUser

Open TitouanGisle opened this issue 5 years ago • 3 comments

Hi !

Just like it is possible to update a SProject via the API, would it be possible to also update a SUser? Or is there already a way that I have yet to find ?

Thanks for your consideration !

TitouanGisle avatar Aug 06 '19 09:08 TitouanGisle

A few fields can be updated with the AuthInterface.changePassword, ServiceInterface.changeUserType and ServiceInterface.deleteUser calls.

I guess the only other fields that could be interesting are the name and username fields, are those the ones you are interested in?

rubendel avatar Aug 06 '19 10:08 rubendel

Unfortunately yes.

TitouanGisle avatar Aug 06 '19 10:08 TitouanGisle

I think name could be implemented quite easily, simply by copying the code involved at ServiceInterface.updateProject.

Implementing a change of username could prove to be a bit more difficult since it's for example also used in the "incoming/[username]" path. Also in theory the new email adres should be validated.

rubendel avatar Aug 06 '19 11:08 rubendel