Get All Users
/rest/v16/users
Request
-
excludeLinks: string
Exclude given link types from response. Supported only with produces type application/json.Allowed Values:
[ "self", "child", "parent", "canonical", "next", "prev", "related" ]
-
expand: string
Allows expansion of relationships. Supported only with produces type application/json.Allowed Values:
[ "groups", "accessPermissions" ]
-
fields: string
User fields to be returned in response. Supported only with produces type application/json.
-
limit: integer
Specifies no.of records to be fetched. Supported only with produces type application/json.
-
offset: integer
Spefifies the starting point from which records to be fetched. Supported only with produces type application/json.
-
orderby: string
Specifies a comma-separated list of fields to order the response by. Supported only with produces type application/json.
-
q: string
Criteria to filter the users. By default no filtering is applied.
-
totalResults: boolean
Specifies if the total record to be included in response or not. Supported only with produces type application/json.
Response
- application/json
- application/zip
Default Response
object
-
items:
array List of users
Title:
List of users
List of users
object
-
accessPermissions:
object Access Permissions
Title:
Access Permissions
Access Permissions of a user -
approvalDelegate:
string
Title:
Approval Delegate
Approval Delegate -
billAddress1:
string
Title:
Billing Address 1
Billing Address 1 -
billAddress2:
string
Title:
Billing Address 2
Billing Address 2 -
billCity:
string
Title:
Billing City
Billing City -
billCompany:
string
Title:
Billing Company
Billing Company -
billCompany2:
string
Title:
Billing Company 2
Billing Company 2 -
billCountry:
string
Title:
Billing Country
Billing Country -
billEmail:
string
Title:
Billing Email
Billing Email -
billFax:
string
Title:
Billing Fax
Billing Fax -
billFirstName:
string
Title:
Billing First Name
Billing First Name -
billLastName:
string
Title:
Billing Last Name
Billing Last Name -
billPhone:
string
Title:
Billing Phone
Billing Phone -
billStateProvince:
string
Title:
Billing State
Billing State -
billZip:
string
Title:
Billing Zip
Billing Zip -
company:
object Company details
Title:
Company details
User Company details. Applicable only for Users Across Companies -
currency:
object Currency
Title:
Currency
Currency preference of user. Value holds currency code -
dateAdded:
string
Title:
Date Added
User creation date -
dateFormat:
object Date Format
Title:
Date Format
User preferred date time format -
dateModified:
string
Title:
Date Modified
User modified date -
email:
string
Title:
Email
Email of the user -
enabledForSso:
object Enabled For SSO
Title:
Enabled For SSO
Enabled For SSO -
externalSsoId:
string
Title:
External SSO Id
External SSO Id -
fax:
string
Title:
Fax Number
Fax of the user -
firstName:
string
Title:
First Name
First Name of the user -
groups:
object Groups
Title:
Groups
Groups to which the user belongs -
isAccessAdminPermEnabled:
boolean
Title:
Access Admin Permission Enabled
Access Admin Permission Enabled -
isMobileEnabled:
boolean
Title:
Is Mobile Enabled
Is Mobile Enabled -
isNotifyEmail:
boolean
Title:
Is Notification Preference Email
Is notification preference email -
isNotifyFax:
boolean
Title:
Is Notification Preference Fax
Is notification preference fax -
isProxyPermEnabled:
boolean
Title:
Proxy Permission Enabled
Proxy permission enabled -
isSuperUserPermEnabled:
boolean
Title:
Is Superuser Permission Enabled
Is Superuser Permission Enabled -
isWebServicesOnly:
boolean
Title:
Web Services Only
Web Services Only -
jobTitle:
string
Title:
Job Title
Job Title of the user -
language:
object Language
Title:
Language
Language preference of user. Value holds language code -
lastLogin:
string
Title:
Last Login Date
User last loggedin date -
lastName:
string
Title:
Last Name
Last Name of the user -
links:
array Links to the related objects
Title:
Links to the related objects
Links to the related objects -
login:
string
Title:
Login Id
Login Id of the user -
numberFormat:
object Number Format
Title:
Number Format
Preferred number format of user -
partnerLogin:
string
Title:
Partner Login
Partner Login -
phone:
string
Title:
Phone Number
Phone number of the user -
separateShipAddr:
boolean
Title:
Seperate Ship Address
Seperate Ship Address -
shipAddress1:
string
Title:
Shipping Address 1
Shipping Address 1 -
shipAddress2:
string
Title:
Shipping Address 2
Shipping Address 2 -
shipCity:
string
Title:
Shipping City
Shipping City -
shipCompany:
string
Title:
Shipping Company
Shipping Company -
shipCompany2:
string
Title:
Shipping Company 2
Shipping Company 2 -
shipCountry:
string
Title:
Shipping Country
Shipping Country -
shipEmail:
string
Title:
Shipping Email
Shipping Email -
shipFax:
string
Title:
Shipping Fax
Shipping Fax -
shipFirstName:
string
Title:
Shipping First Name
Shipping First Name -
shipLastName:
string
Title:
Shipping Last Name
Shipping Last Name -
shipPhone:
string
Title:
Shipping Phone
Shipping Phone -
shipStateProvince:
string
Title:
Shipping State
Shipping State -
shipZip:
string
Title:
Shipping Zip
Shipping Zip -
status:
object Status
Title:
Status
Status of the user -
timeZone:
object TimeZone of user
Title:
TimeZone of user
User preferred timezone -
type:
object Type
Title:
Type
Type of the user -
units:
object Units
Title:
Units
User preferred units
object
Access Permissions
object
Company details
-
loginName:
string
Title:
Company Login Name
Company Login Name -
name:
string
Title:
Company Name
Company Name
object
Currency
-
displayValue:
string
Title:
Display Value
Display value. -
value:
string
Title:
Value
Value
object
Date Format
-
displayValue:
string
Title:
Display Value
Display value. -
value:
number
Title:
Value
Value
object
Enabled For SSO
-
displayValue:
string
Title:
Display Value
Display value. -
value:
string
Title:
Value
Value
object
Language
-
displayValue:
string
Title:
Display Value
Display value. -
value:
string
Title:
Value
Value
array
Links to the related objects
-
Array of:
object reference links
Title:
reference links
Reference links for the Parent, Self, Children and Related as applicable
object
Number Format
-
displayValue:
string
Title:
Display Value
Display value. -
value:
number
Title:
Value
Value
object
Status
-
displayValue:
string
Title:
Display Value
Display value. -
value:
string
Title:
Value
Value
object
TimeZone of user
-
displayValue:
string
Title:
Display Value
Display value. -
value:
number
Title:
Value
Value
object
Type
-
displayValue:
string
Title:
Display Value
Display value. -
value:
string
Title:
Value
Value
object
Units
-
displayValue:
string
Title:
Display Value
Display value. -
value:
number
Title:
Value
Value
array
-
Array of:
object Access Permission
Title:
Access Permission
User access bits information
object
Access Permission
-
hasAccess:
boolean
Title:
Has Access
Boolean attribute that indicates if a user has access to the restricted entity. -
name:
string
Title:
Restricted Entity Name
Name of the entity to which access restrictions apply -
type:
string
Title:
Type
Type of the restricted entity. Possible values productFamily, supportedProductFamily and dataTableFolder -
variableName:
string
Title:
Restricted Entity Variable Name
Variable name of the entity to which access restrictions apply
array
-
Array of:
object Group
Title:
Group
User group information
object
Group
-
label:
string
Title:
Group Name
Group name -
type:
string
Title:
Group Type
Type of the group -
variableName:
string
Title:
Group Variable Name
Variable name of the group
object
reference links
-
href:
string
Title:
URL to the related object
URL to the related object -
name:
string
-
rel:
string
Title:
Link Relationship to the current object
Default Value:self
Link Relationship to the current object
Examples
This endpoint returns all users accessible to the current user by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST - i - H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" https://sitename.oracle.com/rest/v16/users
- To return a JSON object, set the Accept header to 'application/json'.
- To return a Zip file, set the Accept header to 'application/zip'.
Query Examples
Expand all users with groups details.
https://sitename.oracle.com/rest/v16/users?expand=groups
Expand all users with access permission, if Administration Groups are disabled.
https://sitename.oracle.com/rest/v16/users?expand=accessPermissions
Return all host company users.
https://sitename.oracle.com/rest/v16/users?q={"company.loginName":"_host"}
Return all users of a partner organization.
https://sitename.oracle.com/rest/v16/users?q={"company.loginName”:"po1"}
Return all active users sorted by company name.
https://sitename.oracle.com/rest/v16/users?q={"status":1}&orderby=company.name
Return all active users of a partner organization sorted by user type.
https://sitename.oracle.com/rest/v16/users?q={"$and":[{"company.loginName":"po1"}, {"status":1}]}&orderby=type
Return all active users of a partner organization and BUY_ACCESS user type.
Return all active users of a partner organization and BUY_ACCESS user type.
Return all active users of a partner organization sorted by company name and user type.
https://sitename.oracle.com/rest/v16/users?q={"$and":[{"company.loginName":"po1"}, {"status":1}]}
The user's listed in the response varies depending on the current logged in user access permissions and groups. If the Logged In user is:
BigMachines (_internal) company user - The return only contains users from _internal company
- If the user is a Support Type user - The return only contains Support Users.
- If the user is not Support Type user - The return contains all the users from _internal company.
Partner Organization company user - the return only contains users from the logged in user's Partner Organization.
- If the user is a Full Access user without User Administration permissions, the return only contains the logged in user.
- If the user is a Full Access user with User Administration permissions, the return contains all users from the user's Partner Organization.
_Host company users with Admin Groups enabled, and
- Internal Users and Partner Organization segments disabled - The return doesn't return any users, returns an error.
- Internal Users enabled and Partner Organization segments disabled - The return lists all users from the Host company
- If the user is a Full Access user without User Administration permissions, Internal Users disabled, and Partner Organization segments enabled - The return doesn't return any users, returns an error.
- If the user is a Full Access user with User Administration permissions, Internal Users disabled, and Partner Organization segments enabled – The return lists all users from all Partner Organizations
- If the user is a Full Access user without User Administration permissions, Internal Users and Partner Organization segments enabled – The return lists only Host company users.
- If the user is a Full Access user with User Administration permissions, Internal Users and Partner Organization segments enabled – The return lists all users from Host company and all Partner Organizations.
_Host company users with Admin Groups disabled, and
- If the user is a Full Access user with User Admin permissions – The return lists all users from Host company and all Partner Organizations.
- If the user is a Full Access user without User Admin permissions – The return only contains the logged in user.
Response Body Sample
{ "items": [{ "login": "simon.watts", "isNotifyFax": false, "firstName": "Simon", "lastName": "Watts", "jobTitle": "Sales Manager", "email": "simon.watts_eczw@companyemail.com", "phone": "262-262-2627", "fax": "262-265-2655", "billCountry": "United States", "shipCountry": "United States", "shipFax": "262 265 2655", "partnerLogin": "john.dunbar", "externalSsoId": "simon.watts_eczw@companyemail.com", "separateShipAddr": false, "isNotifyEmail": true, "isWebServicesOnly": false, "dateModified": "2020-10-13T16:28:47.000Z", "dateAdded": "2018-05-07T14:15:45.000Z", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/simon.watts" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/simon.watts/groups" } ], "lastLogin": "2018-05-07T15:23:58.000Z", "type": { "value": "SALES_AGENT", "displayValue": "SalesAgent" }, "language": { "value": "en_US", "displayValue": "English" }, "currency": { "value": "GBP", "displayValue": "United Kingdom Pound" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "timeZone": { "value": "America/New_York", "displayValue": "(GMT-5:00 GMT-4:00) New York" }, "units": { "value": 0, "displayValue": "System Default" }, "dateFormat": { "value": 2, "displayValue": "dd/MM/yyyy HH:mm" }, "status": { "value": 1, "displayValue": "Active" }, "enabledForSso": { "value": "SSO_ENABLED", "displayValue": "Enabled for SSO" }, "company": { "name": "abcCo", "loginName": "_host" } }, { "login": "takahiro.tayama", "isNotifyFax": false, "firstName": "Takahiro", "lastName": "Tayama", "jobTitle": "営業部長", "email": "takahiro.tayama_eczw@companyemail.com", "phone": "011-98-7-6543-2103", "fax": "011-98-7-6543-2102", "shipFax": "011-98-7-6543-2102", "partnerLogin": "john.dunbar", "externalSsoId": "takahiro.tayama_eczw@companyemail.com", "separateShipAddr": false, "isNotifyEmail": true, "isWebServicesOnly": false, "dateModified": "2020-10-13T16:28:47.000Z", "dateAdded": "2018-05-07T14:15:45.000Z", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/takahiro.tayama" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/takahiro.tayama/groups" } ], "lastLogin": "2018-05-07T15:24:34.000Z", "type": { "value": "SALES_AGENT", "displayValue": "SalesAgent" }, "language": { "value": "ja_JP", "displayValue": "Japanese [Japan]" }, "currency": { "value": "JPY", "displayValue": "Japanese Yen" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "timeZone": { "value": "America/New_York", "displayValue": "(GMT-5:00 GMT-4:00) New York" }, "units": { "value": 0, "displayValue": "System Default" }, "dateFormat": { "value": 2, "displayValue": "dd/MM/yyyy HH:mm" }, "status": { "value": 1, "displayValue": "Active" }, "enabledForSso": { "value": "SSO_ENABLED", "displayValue": "Enabled for SSO" }, "company": { "name": "abcCo", "loginName": "_host" } }, { "login": "taro.hiraiwa", "isNotifyFax": false, "firstName": "Taro", "lastName": "Hiraiwa", "jobTitle": "営業担当者", "email": "taro.hiraiwa_eczw@companyemail.com", "phone": "011-98-7-6543-2101", "fax": "011-98-7-6543-2100", "shipFax": "011-98-7-6543-2100", "partnerLogin": "john.dunbar", "externalSsoId": "taro.hiraiwa_eczw@companyemail.com", "separateShipAddr": false, "isNotifyEmail": true, "isWebServicesOnly": false, "dateModified": "2020-10-13T16:28:48.000Z", "dateAdded": "2018-05-07T14:15:45.000Z", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/taro.hiraiwa" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/taro.hiraiwa/groups" } ], "lastLogin": "2018-05-07T15:25:13.000Z", "type": { "value": "SALES_AGENT", "displayValue": "SalesAgent" }, "language": { "value": "ja_JP", "displayValue": "Japanese [Japan]" }, "currency": { "value": "JPY", "displayValue": "Japanese Yen" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "timeZone": { "value": "America/New_York", "displayValue": "(GMT-5:00 GMT-4:00) New York" }, "units": { "value": 0, "displayValue": "System Default" }, "dateFormat": { "value": 2, "displayValue": "dd/MM/yyyy HH:mm" }, "status": { "value": 1, "displayValue": "Active" }, "enabledForSso": { "value": "SSO_ENABLED", "displayValue": "Enabled for SSO" }, "company": { "name": "abcCo", "loginName": "_host" } }, { "login": "wei.wang", "isNotifyFax": false, "firstName": "Wei", "lastName": "Wang", "jobTitle": "销售代表", "email": "wei.wang_eczw@companyemail.com", "phone": "262-262-2627", "fax": "262-265-2655", "shipFax": "262 265 2655", "partnerLogin": "john.dunbar", "externalSsoId": "wei.wang_eczw@companyemail.com", "separateShipAddr": false, "isNotifyEmail": true, "isWebServicesOnly": false, "dateModified": "2020-10-13T16:28:48.000Z", "dateAdded": "2018-05-07T14:15:46.000Z", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/wei.wang" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/wei.wang/groups" } ], "lastLogin": "2018-05-07T15:26:22.000Z", "type": { "value": "SALES_AGENT", "displayValue": "SalesAgent" }, "language": { "value": "zh_CN", "displayValue": "Chinese (Simplified) [China]" }, "currency": { "value": "CNY", "displayValue": "Chinese Yuan Renminbi" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "timeZone": { "value": "America/New_York", "displayValue": "(GMT-5:00 GMT-4:00) New York" }, "units": { "value": 0, "displayValue": "System Default" }, "dateFormat": { "value": 2, "displayValue": "dd/MM/yyyy HH:mm" }, "status": { "value": 1, "displayValue": "Active" }, "enabledForSso": { "value": "SSO_ENABLED", "displayValue": "Enabled for SSO" }, "company": { "name": "abcCo", "loginName": "_host" } }, { "login": "colby.morris", "isNotifyFax": false, "firstName": "Colby", "lastName": "Morris", "jobTitle": "Channel Account Manager", "email": "colby.morris_zenh@companyemail.com", "phone": "13105555237", "fax": "13105555239", "shipFax": "13105555239", "partnerLogin": "john.dunbar", "externalSsoId": "colby.morris_zenh@companyemail.com", "separateShipAddr": false, "isNotifyEmail": true, "isWebServicesOnly": false, "dateModified": "2020-10-13T16:28:49.000Z", "dateAdded": "2018-05-07T14:15:39.000Z", "links": [{ "rel": "self", "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/colby.morris" }, { "rel": "child", "href": "https://sitename.oracle.com/rest/v16/companies/_host/users/colby.morris/groups" } ], "lastLogin": "2018-11-22T09:30:10.000Z", "type": { "value": "SALES_AGENT", "displayValue": "SalesAgent" }, "language": { "value": "en_US", "displayValue": "English" }, "currency": { "value": "USD", "displayValue": "US Dollar" }, "numberFormat": { "value": 0, "displayValue": "####.##" }, "timeZone": { "value": "America/New_York", "displayValue": "(GMT-5:00 GMT-4:00) New York" }, "units": { "value": 0, "displayValue": "System Default" }, "dateFormat": { "value": 0, "displayValue": "MM/dd/yyyy h:mm a" }, "status": { "value": 1, "displayValue": "Active" }, "enabledForSso": { "value": "SSO_ENABLED", "displayValue": "Enabled for SSO" }, "company": { "name": "abcCo", "loginName": "_host" } }, ... ], "offset": 0, "limit": 1000, "count": 61, "hasMore": false, "links": [{ "rel": "canonical", "href": "https://sitename.oracle.com/rest/v16/users" }, { "rel": "self", "href": "https://sitename.oracle.com/rest/v16/users?offset=0&limit=1000" } ] }