How to use the Floor Plan Mapper API to upload employee profile photos
The powerful Floor Plan Mapper API can be used to bulk upload employee profile photos into Floor Plan Mapper. This eliminates the need to manually add photos to each employee via the user interface.
Steps to bulk upload profile photos into Floor Plan Mapper
- In order to bulk upload photos into Floor Plan Mapper, place all photos in one folder.
- Use the employee report tool in Floor Plan Mapper to export a list of all employees.
- Rename photo names to match the employee ID number exported from the Floor Plan Mapper employee report. Create a CSV listing employeeID and matching image file name.


- Edit the FPM_Get_Token.ps Powershell script with the active Floor Plan Mapper workspace details. Update the workspace name (replace “your-workspace-name-here” with the current workspace) and update the Floor Plan Mapper user account email and password (FloorPlanMapperAccountLoginEmail and “FloorPlanMapperAccountLoginPassword).
$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession Invoke-WebRequest -UseBasicParsing -Uri "https://your-workspace-name-here.fpm.cloud/api/v1/auth/login?_t=1690798064573" ` -Method "POST" ` -WebSession $session ` -Headers @{ "authority"="your-workspace-name-here.fpm.local" "method"="POST" "path"="/api/v1/auth/login" "scheme"="https" "accept"="application/json, text/plain, */*" "accept-encoding"="gzip, deflate, br" "cache-control"="no-cache" "origin"="your-workspace-name-here.fpm.cloud" "pragma"="no-cache" } ` -ContentType "application/json;charset=UTF-8" ` -Body "{`"email`":`"FloorPlanMapperAccountLoginEmail`",`"password`":`"FloorPlanMapperAccountLoginPassword`"}" - Execute the PowerShell script. This will generate a token which is required to connect to Floor Plan Mapper using the Floor Plan Mapper API.
- Copy the token created when the PowerShell script was executed.
- Edit the upload_avatars_from_csv_withUI.py Pyhton file. Update the API token (API_TOKEN = ‘tokenfromPoweShellScript’ # Your authentication token) with token created by the previous Powershell script.
- Launch the upload_avatars_from_csv_withUI.py with Python

- Browse to the CSV file containing the employeeID and image name reference. Ensure all the photos are in the same folder as the Python script.

Photos begin uploading immediately.
