Provision Employee App via API with Permission Check

API toolRecipe Tools

What it does

When someone makes a new API request, this automation verifies access permissions before creating an employee app. It returns forbidden, success, or failed based on the permission check and creation outcome.

Who it's for

IT teams who need to provision employee apps through an API without manual setup.

How teams use this

Provision apps from an internal portal

Someone submits an employee app request through an internal system that calls this API. The app is created automatically if they have permission, and the portal shows the result.

Integrate with an HR onboarding system

Route new hire data from an HR system to this API so employee apps are created as part of onboarding. The same permission checks and error handling apply.

Add department validation to the permission check

Extend the permission logic to include a department filter so only certain teams can request apps for specific departments. Set a department parameter in the API request and validate it against the requester's profile.

How it works

  1. Receive the API request. A new API request arrives with parameters for the employee app. The automation defines what data is required and what the response will include.
  2. Check access permissions. Call the Get API Access Profile Permissions function in Workato Recipe Function to verify the requester has permission to create an employee app.
  3. Create the employee app. If permissions are valid, call the Create Employee App function to provision the app with the request parameters.
  4. Return the result. Reply with forbidden if permissions failed, success if the app was created, or failed if an error occurred during creation.