Hello,
More details would be helpful. Without seeing the code that creates the error it is hard to identify what is going on.
One possibility: if you are connecting to the management API via user credentials (as opposed to machine-to-machine/client credentials), you do not have permissions to update other users’ info.
John