capabilities.work

Replace a user's roles (PUT)

One step with Optimizely. We can help you get access.

Get something done

Replace a user's roles (PUT)

Use Optimizely: its Admin API V1 User Profiles API lets you replace a user's roles (PUT) in a single step (PUT /api/v1/admin/userprofiles({key})/roles). capabilities.work can help you get signed up and connected.

  • Can I overwrite the full set of roles a user has with a PUT?
  • How are a user's roles replaced rather than appended?
Say it to your AI assistant
  • Replace the role set on user profile {key} using PUT.
  • PUT a new role list onto user {key}.
For your developer

PUT /api/v1/admin/userprofiles({key})/roles in Admin API V1 User Profiles API. Full spec on APIs.io.