[api] make it possible to edit user state and globalroles via user api (required for webui user management)