Manage Eligible Facility, Company, and Group Access for Users using a REST API

INTRODUCTION TO JSON SUPPORT

We now support JSON format in the user interface, making it easier and faster to process data. JSON helps reduce file size and is widely used across industries. You can use the new API to load data into stage tables without changing how data is pulled from them. Plus, you can choose to run the process in sync or async mode with a simple setting.

POST... /wms/lgfapi/v10/stage/user

BULK UPDATE APIS FOR MANAGING FACILITIES, COMPANIES, AND GROUPS

We’re also making the process faster and easier for you to manage eligible facilities, companies, and groups with new bulk update APIs. Previously, adding eligible facilities, companies, or groups for new users—or assigning them to newly created ones—required manual, one-by-one updates.

HOW TO USE THE BULK UPDATE APIS

With these new APIs, you can now add or remove eligible facilities, companies, or groups in bulk. Simply provide:

  • A list of users

  • The action (ADD or REMOVE)

  • Relevant IDs or codes

The updates will be reflected directly in the user interface under Eligible Facilities, Companies, or Groups.

For eligible companies:

  • Parent-child company assignments will be automatic for administrators.

  • For other roles, such as Supervisors or Employees, manual intervention ensures precise control.

EXAMPLE API CALL AND DOCUMENTATION

URL

https://api.example.com/bulk-update

Example Request:

{

  "action": "ADD",

  "users": ["user1", "user2"],

  "eligibleCompanies": ["companyA", "companyB"],

  "eligibleGroups": ["group1", "group2"]

}

Example Response:

{

  "status": "success",

  "updatedRecords": 10

}

BENEFITS OF BULK UPDATE APIS

These APIs simplify the process of managing user data by reducing manual intervention and streamlining updates. For instance, administrators can:

  • Add or remove facilities, companies, or groups for multiple users simultaneously.

  • Eliminate repetitive steps while ensuring accurate data updates.

EXAMPLE

Imagine an administrator needs to assign 10 facilities to 20 users. Previously, this required navigating through individual screens and performing updates one-by-one. With the bulk update API:

  • The administrator provides the user list, action type, and facility IDs in a single request.

  • The API processes the request and updates all records simultaneously.

  • The updated information is reflected in the user interface in real time.

BULK CHANGE API URLS

We've also added the following Bulk Change APIs which allow you to change eligible facilities, companies, and groups:

  • POST ...../v10/entity/user/bulk_change_eligible_facility
  • POST ...../v10/entity/user/bulk_change_eligible_company
  • POST ...../v10/entity/user/bulk_change_eligible_group

Steps to Enable

You don't need to do anything to enable this feature.