Get all users
get
/hcmRestApi/scim/Users
Get all users
Request
Query Parameters
-
attributes: string
This parameter specifies a comma-separated list of attribute values to be included in the response.
-
count: integer
This parameter specifies the number of resource instances to be returned in the current range.
-
filter: string
This parameter specifies the query expression to retrieve a subset of user resource instances. Format: ?filter=
Example: filter=firstName pr and userType eq Employee. -
sortBy: string
This parameter specifies the attributes based on which the resource collection is sorted.Format: ?sortBy=
where the attribute name must be of the format for simple attributes and for complex attributes. Example: sortBy=active -
sortOrder: string
This parameter specifies the attributes based on which the resource collection is ordered. Example: sortOrder=ascending
-
startIndex: integer
This parameter specifies use of 1-based index for the first result included in the response. Specify this query parameter to use pagination.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
The following table describes the response for this task.
Root Schema : Users
Type:
Show Source
object-
itemsPerPage: integer
Title:
CountThe number of resource instances returned in the current range. -
Resources: array
Resources
Title:
ResourcesThe user resources in the collection. -
startIndex: integer
Title:
start indexThis parameter defines the starting position in the resource collection. For example, if startIndex is 11 and itemsPerPage is 10, the response body contains rows from 11 to 20.
Nested Schema : Resources
Type:
arrayTitle:
ResourcesThe user resources in the collection.
Show Source
Nested Schema : Users-item
Type:
Show Source
object-
active: boolean
Title:
ActiveIndicates the administrative status of the user. The service provider determines the definitive value for this attribute. For example, true indicates that the user is able to login, and false indicates that the user account is suspended. -
displayName: string
Title:
DisplayNameThe display name of the user, usually the full name. -
emails: array
Emails
Title:
EmailsThe e-mail addresses of the user. The service provider uses canonical form of these addresses, for example, bjensen@example.com instead of bjensen@EXAMPLE.COM. Canonical type values are work, home, and other. -
id: string
Title:
IdRead Only:trueA unique identifier for the user resource in Oracle Fusion Cloud Applications. -
meta: object
Meta
Title:
MetaThe metadata of the user resource. -
name: object
Name
Title:
NameThe components of the user's name. This attribute may return:Full name as a single string Individual component attributes Both variants. The formatted version indicates how the component attributes are combined so that both variants describe the same name. -
password: string
Title:
PasswordThe clear text password of the user. This attribute is used to specify an initial password for new users and to reset password for existing users. The password attribute is never returned in response to a query. -
roles: array
Roles
Title:
RolesThe list of roles for users in Oracle Fusion Cloud Applications. -
schemas(required): array
Schemas
Title:
SchemasThe schema of the user resource. -
urn:scim:schemas:extension:fa:2.0:faUser: object
faUser-item
-
userName(required): string
Title:
UserNameA unique identifier for the user to authenticate with the service provider directly. This attribute is required.
Nested Schema : Emails
Type:
arrayTitle:
EmailsThe e-mail addresses of the user. The service provider uses canonical form of these addresses, for example, bjensen@example.com instead of bjensen@EXAMPLE.COM. Canonical type values are work, home, and other.
Show Source
Nested Schema : Meta
Type:
objectTitle:
MetaThe metadata of the user resource.
Nested Schema : Name
Type:
objectTitle:
NameThe components of the user's name. This attribute may return:Full name as a single string Individual component attributes Both variants. The formatted version indicates how the component attributes are combined so that both variants describe the same name.
Nested Schema : Roles
Type:
arrayTitle:
RolesThe list of roles for users in Oracle Fusion Cloud Applications.
Show Source
Nested Schema : faUser-item
Type:
Show Source
object-
accountType: string
Title:
AccountTypeRead Only:trueThe account type of a user to indicate person or party association. -
assignServiceAdminRoles: boolean
Title:
AssignServiceAdminRolesIndicates if the service admin roles are assigned to the user. You can use this attribute to assign ORA_FND_DIAG_ADMINISTRATOR_JOB, ORA_ASM_APPLICATION_IMPLEMENTATION_CONSULTANT_JOB, and ORA_FND_IT_SECURITY_MANAGER_JOB admin roles when you create or update a user. -
partyInformation: array
PartyInformation
Title:
PartyInformationThe party information associated with the user. -
userCategory: string
Title:
UserCategoryA user is associated with only one category, at any given time. The default user category value is DEFAULT. -
workerInformation: array
WorkerInformation
Title:
WorkerInformationThe worker information associated with the user.
Nested Schema : email-item
Type:
Show Source
object-
primary: boolean
Title:
PrimaryIndicates that this e-mail id is the primary address. This value is hard coded to true. -
type: string
Title:
TypeThe type of e-mail id, which is hard coded to work. -
value: string
Title:
ValueThe e-mail addresses of the user. The service provider uses canonical form of these addresses, for example, bjensen@example.com instead of bjensen@EXAMPLE.COM. Canonical type values are work, home, and other.
Nested Schema : role-item
Type:
Show Source
object-
description: string
Title:
DescriptionRead Only:trueThe description of the role. -
displayName: string
Title:
DisplayNameRead Only:trueThe display name of the role. -
id: string
Title:
IdRead Only:trueA list of ids for the roles that a user can belong to, through direct membership. -
value: string
Title:
ValueRead Only:trueA list of values for the roles.
Nested Schema : PartyInformation
Type:
arrayTitle:
PartyInformationThe party information associated with the user.
Show Source
Nested Schema : WorkerInformation
Type:
arrayTitle:
WorkerInformationThe worker information associated with the user.
Show Source
Nested Schema : partyInformation-item
Type:
Show Source
object-
partyNumber: string
Title:
PartyNumberRead Only:trueThe party number associated with the user. -
PartyUsage: string
Title:
Party UsageRead Only:trueThe party usage associated with the user, for example, Supplier Contact,Partner Contact, and Customer Contact.
Nested Schema : workerInformation-item
Type:
Show Source
object-
businessUnit: string
Title:
BusinessUnitRead Only:trueThe business unit to which the user belongs. -
department: string
Title:
DepartmentRead Only:trueThe department to which the user belongs. -
job: string
Title:
JobRead Only:trueThe job title of the user. -
manager: string
Title:
ManagerRead Only:trueThe manager name of the user. -
personNumber: string
Title:
PersonNumberRead Only:trueThe person number associated with the user.
Examples
The following example shows how to retrieve all the users by submitting a GET request on the REST resource using cURL.
curl -i -u "<username>:<password>" -X GET https://servername.fa.us2.oraclecloud.com/hcmRestApi/scim/Users
Example of Response Header
The following shows an example of the response header.
Status: HTTP/1.1 200 OK Content-Type : application/json
Example of Response Body
The following example shows the contents of the response body in JSON format:
{
"itemsPerPage": 10000,
"startIndex": 1,
"Resources": [
{
"id": "C2A28F8ED9FA377A20C8E3D614936E88",
"meta": {
"created": "2015-12-09 21:02:44.000",
"lastModified": "2016-10-20 10:54:56.029",
"location": "http://<host>:<port>/hcmRestApi/scim/Users/C2A28F8ED9FA377A20C8E3D614936E88"
},
"schemas": [
"urn:scim:schemas:core:2.0:User"
],
"userName": "ZFRCE0543_John",
"name": {
"familyName": "Kyle",
"givenName": "John"
},
"displayName": "John Kyle",
"emails": [
{
"value": "John.K@oracle.com",
"type": "W",
"primary": true
}
],
"roles": [
{
"id": "40C4AE052EC2582286A6A0FB1514656C",
"value": "ORA_PER_EMPLOYEE_ABSTRACT",
"displayName": "Employee",
"description": "Identifies the person as an employee."
},
{
"id": "05E9F3576995F83E74EB3818FDCA8639",
"value": "ORA_PER_LINE_MANAGER_ABSTRACT",
"displayName": "Line Manager",
"description": "Identifies the person as a line manager."
}
],
"active": true
},
......
......
......
]
}