Is there a way to programmatically activate a user?

1
0
-1

Hi folks...

I'm using a node backend to manage the methods to handle Bonita API methods....

I managed to create users, set roles, groups and memberships, but I couldn't find a way to activate those users, through API...

I've tried

PUT `${BPM_API_REST}/API/identity/user/${userId}`, correctly authenticated, and the body
{
enabled: true
}

The response status is 200 but it actually do nothing...

Does anyone knows anything about that?

1 answer

1
0
-1

I figured out... the enabled is a string... it works in the update (PUT) and also in the create (POST)...

PUT `${BPM_API_REST}/API/identity/user/${userId}`, correctly authenticated, and the body
{
enabled: 'true'
}

Alex.

Notifications