Changing users identities via Users API

Hi.
Is it possible to changing users identities via Users API? We add new openid_connect auth provider, and would like to add this identity for all users automaticaly.
But I could not find any method for it in Users APi https://docs.gitlab.com/ee/api/users.html. Is it possible via user modification https://docs.gitlab.com/ee/api/users.html#user-modification ? If so, is there any examples?

Thank you.

Hmm… I found solution, example:
curl --request PUT --header “PRIVATE-TOKEN: someToken” --header “Content-Type: application/json” https://gitlab.example.com/api/v4/users/252?provider=openid_connect&extern_uid=someuid