JavaScript
import BlueHive from '@bluehive/sdk'; const client = new BlueHive({ apiKey: 'My API Key', }); const response = await client.employees.linkUser({ employeeId: 'x', userId: 'x' }); console.log(response.linkId);
{ "success": true, "linkId": "<string>", "message": "<string>" }
Link an employee to a user account with specified roles
API key for accessing BlueHive API endpoints. Format: "ApiKey " or "Bearer "
1
Employee linked successfully
ID of the created link
Was this page helpful?