Users and Folders (Projects) REST API
Overview
The Users and Folders (Projects) REST services allows you to query and update User and Folder information for your company.
Base URL
https://fieldconnect.field2base.com/v2/api
Header (required)
Authorization: Basic {CompanyID}:{Username}:{Password}:{API Sync Key}
Content-Type: application/json
Note: Authorization Header above is the same as all other Mobile Forms REST API calls.
Note: API Developers can use OAuth 2.0 Authentication instead of the Basic Authentication. The OAuth 2.0 Authentication uses the Client Credentials Grant Type and requires the Company have a Client ID and a Client Secret generated in the Mobile Forms Portal to make web service calls to the REST API Endpoints. You can contact the Professional Services team at f2bps@field2base.com to implement OAuth 2.0 Authentication.
Supported Operations
Users
- GET users/
- Retrieve a list of all Users
- GET users/lookup/folder/{folderID}
- Retrieve a list of Users with access to the specified Folder
- GET users/lookup/group/{groupID}
- Retrieve a list of Users in the specified Group
- GET users/lookup/type/{userType}
- Retrieve a list of Users by the specified type
- User types are: UsersOnly, UsersAssignedToTablets and RecipientsOnly
- GET users/{userKey}
- Retrieve User information with User Key
- GET users/search/username/{username}/
- Retrieve User information with username
- GET users/search/email/{emailAddress}/
- Retrieve User information with email address
- GET users/search/personnelid/{personnelID}
- Retrieve User information with Personnel ID
- POST users/create
- Create a new User
- PUT users/update/{userKey}
- Update a User with key {user key}
NOTE: You will need to add "/" at the end of the call if there is a period in the Username or Group Name.
Folders (previously named Projects)
- GET projects/
- Retrieve a list of Folders
- GET projects/{projectKey}
- Retrieve Folder information with key (projKey)
- GET projects/{projectKey}/users
- Retrieve a list of Users with access to a Folder with key (projKey)
API Samples
Get All Users
Request : GET
Response: 200 OK
- [
- {
- "UserKey": "5f6d0589-dad0-4fe1-8acc-7669bcxxxxxx",
- "UserName": null,
- "EnableWebAccess": true,
- "Password": null,
- "PasswordNeverExpires": null,
- "ForcePasswordChangeOnLogin": null,
- "PIN": 123ABC,
- "FirstName": "Test",
- "MiddleName": null,
- "LastName": "User",
- "PhoneCode": null,
- "Phone": null,
- "Email": " test@test.com ",
- "Projects": [
- "1be2fd67-9c0b-40ba-a440-xxxxxxxxxxxx",
- "ed02146a-2ca7-4ce7-980f-xxxxxxxxxxxx",
- "3fec86e5-7069-41e4-966e-xxxxxxxxxxxx"
- ],
- "Groups": [
- "Basic Workflow Approval Group",
- "Basic Workflow Recipient Group",
- ],
- "OptionalRecipient": null,
- "Roles": [
- "Mobile Forms Administrator",
- "Web App User"
- ],
- "PersonnelID": null,
- "PersonnelType": null,
- "JobTitle": null,
- "DefaultLocation": "",
- "DefaultGroup": null,
- "ActivationLimit": null,
- "SendPasswordEmail": null,
- "AllowForgotPasswordToolToResets": true,
- "UserType": "User",
- "LastLogin": "2022-11-23T17:24:21.837",
- "CreationDate": "2021-11-23T17:24:21.837",
- "RequireAlwaysSSO": null
- },
- {
- "UserKey": "6195b3e5-2ef8-4df5-8da4-d66ff6xxxxxx",
- "UserName": null,
- "EnableWebAccess": false,
- "Password": null,
- "PasswordNeverExpires": null,
- "ForcePasswordChangeOnLogin": null,
- "PIN": null,
- "FirstName": null,
- "MiddleName": null,
- "LastName": null,
- "PhoneCode": "33,
- "Phone": "123-456-7890",
- "Email": " hi@gmail.com ",
- "Projects": [
- "84261aea-4aa2-4357-9ab2-xxxxxxxxxxxxx"
- ],
- "Groups": [
- "Test Group"
- ],
- "OptionalRecipient": null
- "Roles": [
- "Workflow Reporter"
- ],
- "PersonnelID": null,
- "PersonnelType": null,
- "JobTitle": null,
- "DefaultLocation": "",
- "DefaultGroup": null,
- "ActivationLimit": null,
- "SendPasswordEmail": null,
- "AllowForgotPasswordToolToResets": true,
- "UserType": "User",
- "LastLogin": "2022-11-23T17:24:21.837",
- "CreationDate": "2021-11-23T17:24:21.837",
- "RequireAlwaysSSO": false,
- "MultiFactorAuthenticationEnabled": false
- }
Get User by User Key
Request : GET
- {
- "UserKey": "5f6d0589-dad0-4fe1-8acc- 7669bcxxxxxx ",
- "UserName": null,
- "EnableWebAccess": false,
- "Password": null,
- "PasswordNeverExpires": false,
- "ForcePasswordChangeOnLogin": null,
- "PIN": 123ABC,
- "FirstName": null,
- "MiddleName": null,
- "LastName": null,
- "PhoneCode": null,
- "Phone": null,
- "Email": " tester@field2base.com ",
- "Projects": [],
- "Groups": [],
- "OptionalRecipient": true,
- "Roles": [],
- "PersonnelID": null,
- "PersonnelType": null,
- "JobTitle": null,
- "DefaultLocation": "",
- "DefaultGroup": null,
- "ActivationLimit": null,
- "SendPasswordEmail": null,
- "AllowForgotPasswordToolToResets": true,
- "UserType": "User",
- "LastLogin": "2021-11-23T17:24:21.837",
- "CreationDate": "2021-11-23T17:24:21.837",
- "RequireAlwaysSSO": false,
- "MultiFactorAuthenticationEnabled": false
- }
Create a User
Request : POST
Body
- {
- UserName: "tester",
- EnableWebAccess: true,
- Password: "12345",
- PasswordNeverExpires: false,
- ForcePasswordChangeOnLogin: false,
- FirstName: "tester",
- MiddleName: "",
- LastName: "Chen",
- Email: " tester@f2b.com ",
- Projects: ["56f88fb1-c3c7-4f9e-8a80-3bda4c906127"],
- Groups: [],
- }
Response: 201 Created
- {
- "UserKey": "519e0efe-fec8-4546-99e5-9c0a4bb32688",
- "UserName": "tester",
- "EnableWebAccess": true,
- "Password": "12345",
- "PasswordNeverExpires": false,
- "PIN": "123ABC",
- "ForcePasswordChangeOnLogin": false,
- "FirstName": "tester",
- "MiddleName": "",
- "LastName": "McTester",
- "PhoneCode": null,
- "Phone": null,
- "Email": " tester@f2b.com ",
- "Projects": [
- "56f88fb1-c3c7-4f9e-8a80-3bda4c906127"
- ],
- "Groups": [],
- "OptionalRecipient": null,
- "Roles": [],
- "PersonnelID": null,
- "PersonnelType": null,
- "JobTitle": null,
- "DefaultLocation": "",
- "DefaultGroup": null,
- "ActivationLimit": null,
- "SendPasswordEmail": null,
- "AllowForgotPasswordToolToResets": true,
- "UserType": "User",
- "LastLogin": "2021-11-23T17:24:21.837",
- "CreationDate": "2021-11-23T17:24:21.837",
- "RequireAlwaysSSO": false,
- "MultiFactorAuthenticationEnabled": false
- }
Get All Folders (Projects)
Request: GET
Response: 200 OK
- {
- "ProjKey": "56f88fb1-c3c7-4f9e-8a80-3bda4c906127",
- "Name": "temp",
- "Description": null,
- "StartDate": "2018-05-03T00:00:00"
- },
- {
- "ProjKey": "1be2fd67-9c0b-40ba-a440-40a9c6fe0589",
- "Name": "Form Library",
- "Description": null,
- "StartDate": "2018-04-20T00:00:00"
- OptionalRecipient": true
- }
Popular Articles
Mobile Forms iOS Install Via the Apple App Store
Tutorial Video A tutorial video is also available and covers most of this material if you prefer to watch an overview of how to install the app. Accessing the Apple App Store There should be an icon for the Apple App Store on the home screen of your ...
Forms Designer Quick Start Guide
Overview Field2Base Forms Designer is the proprietary software application that allows your existing paper forms to be quickly converted to a smart E-form available to your end users via our mobile and web-based Mobile Forms applications. This ...
Portal 11.28.2023 Release Notes
Overview Our release notes offer brief descriptions of product enhancements and bug fixes. We include links to the current articles for any affected features. Those articles will be updated shortly after the Portal release to include new ...
Integration Service Configuration Guide
How To Configure Integration Services To Allow Read/Write Access on a Network Path All of our Integration Products, including the DIM, DUU, and EDM have respective Windows Services responsible for communicating with our server. Occassionally, ...
Data Integration Module (DIM) Migration Guide
Overview This article provides the information necessary to migrate the Field2Base Data Integration Module (DIM) over from one server to another. Please refer to the DIM Install Guide for the initial installation of the Field2Base DIM. Once that's ...