Get users
/rest/ofscCore/v1/users
This operation returns the list of users.
The visibility rules are based on the application's configuration parameter "Allow access only to certain resources", which allows to restrict the access by a list of resources. The function will only return users that associated with resources visible for the application which makes the request. For example if a requesting application has the access to the top level resource then all the users in the system are visible. If an application is configured with some resource(s) in the list "Allow access only to certain resources", then the visible users are only the users that associated with allowed resource(s) and the resources below in the resource hierarchy.Request
-
limit: integer
The number of items to be returned in the response. The minimum value that can be specified is 1 and the maximum value that can be specified is 100. If the specified value is greater than 100, zero, or if no value is specified, then it defaults to 100.
-
offset: integer
The record number from which the retrieval starts. The default value is zero. If no value is specified, then it defaults to zero. The value zero indicates that the retrieval will start from the beginning of the collection.
Response
- application/json
200 Response
objectUsers-
items:
array Items
Title:
ItemsAn array of objects containing the user account details. -
limit:
integer
Title:
LimitThe limit value specified in the request. If the value is not specified in the request or if the specified value is not accepted, then it defaults to 100. -
offset:
integer
Title:
OffsetThe offset value specified in the request. -
totalResults:
integer
Title:
Total ResultsThe total number of users.
arrayItems-
Array of:
object User
Title:
UserThe details of the user account.
objectUser-
avatar:
object Avatar
Title:
AvatarThe profile picture of the user. -
blockedUntilTime:
string
Title:
Blocked Until TimeThe time until the account is blocked. -
createdTime:
string
Title:
Created TimeThe date and time when the user account is created. -
dateFormat:
string
Title:
Date FormatThe date format of the user account. Allowed Values: ["dd/mm/yy", "mm/dd/yy","dd.mm.yy","yyyy/mm/dd"]. -
language(required):
string
Title:
LanguageThe preferred language of the user. This field accepts the language codes listed on: Supported Language Codes. -
lastLoginTime:
string
Title:
Last Login TimeThe date and time when the user logged in to the account. -
lastPasswordChangeTime:
string
Title:
Last Password Change TimeThe date and time when the password was changed. -
lastUpdatedTime:
string
Title:
Last Updated TimeThe date and time when the user account was updated. This field is not updated if a custom property or the profile picture of the user is changed. This field is only updated when one of the built-in properties is changed. -
login:
string
Title:
LoginThe unique identifier of the user account in Oracle Field Service. -
loginAttempts:
integer
Title:
Login AttemptsThe number of unsuccessful login attempts. -
longDateFormat:
string
Title:
Long Date FormatThe long date format of the user account. -
mainResourceId:
string
Title:
Main Resource IDThe unique identifier of the main resource of the user account. This field is only set for resources that represent field service personnel. It is not set for groups and routing buckets.This field is not returned in the response if empty strings are passed in the request.
-
name(required):
string
Title:
NameThe full name of the user. -
organizationalUnit:
string
Title:
Organizational UnitThe identifier of the organization unit where the user works. The value of this field can be the ID of a resource with the role as 'bucket' or 'organization unit'. -
passwordTemporary:
boolean
Title:
Temporary PasswordThe temporary password of the user account. If the temporary password is set, then the user is prompted to change password on the next login. -
resources(required):
array Resources
Title:
ResourcesMinimum Number of Items:1Unique Items Required:trueThe list of resources assigned to the user account. These resources along with their children are visible to the user. This list does not incIude the resources whose resource ID values are empty. -
selfAssignment:
boolean
Title:
Self AssignmentIndicates whether the users can assign activities to themselves. -
status:
string
Title:
StatusAllowed Values:[ "active", "inactive" ]The status of the user account. -
timeFormat:
string
Title:
Time FormatThe time format of the user account. Allowed Values: [ "12-hour", "24-hour" ]. -
timeZone(required):
string
Title:
Time ZoneThe name of the user's time zone.This field accepts both Oracle Field Service time zone names (for example, Eastern) and IANA standard time zone names (for example, America/New_York). It is recommended that IANA names are specified.
For a list of supported time zones, see Supported Time Zones.
-
timeZoneDiff:
integer
Title:
Time Zone DiffThe difference between UTC and the user's local time, displayed in minutes. For example, -180 means that the user's time is 3 hours behind UTC.This is a read-only field.
-
timeZoneIANA:
string
Title:
Time Zone IANA NameThe IANA name of the user's time zone (for example, America/New_York). For the list of IANA time zone names, see IANA Time ZonesThis is a read-only field and is only returned in responses.
-
userType(required):
string
Title:
User TypeThe type of the user account. The access controls of the user account are defined based on the user type. -
weekStart:
string
Title:
Week StartAllowed Values:[ "sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "default" ]The day on which the week starts for the user account.
arrayResources1trueDefault Response
object-
detail:
string
The detailed description of this error.
-
status:
string
The HTTP status code of this error.
-
title(required):
string
The brief description of this error.
-
type(required):
string
The URL of the web page containing more details about this error.
Examples
The following example shows how to get users by submitting a GET request on the REST resource.
Example of Request Header
The following shows an example of the request header.
GET /rest/ofscCore/v1/users/?limit=5&offset=2 HTTP/1.0 Authorization: Basic c29hcEBwZXRyb2xpYXNoZXZ5Y2gucmVzdDox Host: etadev1f Accept: */*
Example of Response Header
The following shows an example of the response header.
HTTP/1.1 200 OK Server: nginx/1.6.3 Date: Wed, 16 Sep 2015 15:32:19 GMT Content-Type: application/json; charset=utf-8 Connection: close
Example of Response Body
The following example shows the contents of the response body in JSON format.
{
"totalResults": 58,
"limit": 5,
"offset": 2,
"items": [
{
"resources": [
"22"
],
"collaborationGroups": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/users/manager/collaborationGroups"
}
]
},
"name": "Manager",
"status": "active",
"login": "manager",
"language": "en",
"dateFormat": 12,
"longDateFormat": 16,
"timeFormat": 14,
"weekStart": "default",
"timeZoneDiff": -300,
"timeZone": "Eastern",
"createdTime": "2006-02-03 09:20:08",
"lastUpdatedTime": "2013-08-27 13:05:08",
"lastLoginTime": "2013-08-27 13:05:08",
"lastPasswordChangeTime": "2012-07-18 17:23:00",
"userType": "Manager",
"inventories": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/inventories"
}
]
},
"users": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/users"
}
]
},
"serviceRequests": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/serviceRequests"
}
]
},
"workZones": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/workZones"
}
]
},
"workSkills": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/workSkills"
}
]
},
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources"
},
{
"rel": "describedby",
"href": "https://etadev1f/rest/ofscCore/v1/metadata-catalog/resources"
}
]
},
{
"resources": [
"22"
],
"collaborationGroups": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/users/root/collaborationGroups"
}
]
},
"name": "Administrator",
"status": "inactive",
"login": "root",
"language": "en",
"dateFormat": 12,
"longDateFormat": 16,
"timeFormat": 14,
"weekStart": "default",
"timeZoneDiff": -300,
"timeZone": "Eastern",
"createdTime": "2006-02-03 09:20:08",
"lastUpdatedTime": "2013-04-11 13:54:47",
"lastLoginTime": "2011-08-15 14:38:26",
"lastPasswordChangeTime": "2006-04-27 15:48:15",
"userType": "UT16_DISPLAY_PROFILE",
"inventories": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/inventories"
}
]
},
"users": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/users"
}
]
},
"serviceRequests": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/serviceRequests"
}
]
},
"workZones": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/workZones"
}
]
},
"workSkills": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/workSkills"
}
]
},
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources"
},
{
"rel": "describedby",
"href": "https://etadev1f/rest/ofscCore/v1/metadata-catalog/resources"
}
]
},
{
"resources": [
"routing"
],
"collaborationGroups": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/users/CSR/collaborationGroups"
}
]
},
"name": "CSR",
"status": "active",
"login": "CSR",
"language": "en",
"dateFormat": 12,
"longDateFormat": 16,
"timeFormat": 14,
"weekStart": "default",
"timeZoneDiff": -300,
"timeZone": "Eastern",
"createdTime": "2006-08-16 09:56:21",
"lastUpdatedTime": "2013-04-11 13:54:47",
"lastLoginTime": "2012-07-03 11:49:03",
"lastPasswordChangeTime": "2012-03-01 10:04:54",
"userType": "CSR",
"inventories": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/inventories"
}
]
},
"users": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/users"
}
]
},
"serviceRequests": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/serviceRequests"
}
]
},
"workZones": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/workZones"
}
]
},
"workSkills": {
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources/workSkills"
}
]
},
"links": [
{
"rel": "canonical",
"href": "https://etadev1f/rest/ofscCore/v1/resources"
},
{
"rel": "describedby",
"href": "https://etadev1f/rest/ofscCore/v1/metadata-catalog/resources"
}
]
},
...
}
}