Can we set user attribute values temporarily in an API session?

Knowledge Drop

Last tested: Jun 17, 2020

Not exactly - API calls use the user attributes of whoever’s credentials are being used.

We can use the set_user_attribute_group_values call to set user attributes, but these will persist past the API session - if you wanted to revert the user attribute values after the session, it would need to be done in another call.