Retrieve User Information
/mobile/platform/users/{username}
Retrieves information about the current user.
- When the user is a mobile user, this operation retrieves the user name, first name, last name, email address, and the user's profile from Oracle Identity Cloud Service.
- When the user is a virtual user, this operation retrieves the user name.
- When the user is a social user (that is, signed in using social identity), this operation retrieves the user's mobile ID and identity provider.
If you don't know the user name, then use ~ for the username path parameter to indicate the current user.
Permissions
The authorized user can be a social user, virtual user, or a mobile user. If the authorized user is a mobile user, then the user must have a role that's associated with the mobile backend.
Request
-
username: string
The user name of the current user, which is the user in the
AuthorizationHTTP request header. Use~to indicate the current user. If you specify the user name, it must match the user name that's in theAuthorizationHTTP request header.
-
fields(optional): string
You can use this parameter to request a subset of the mobile user properties. This parameter doesn't apply to virtual or social users.
Example:
To retrieve only the properties
firstNameandlastNamefor a mobile user, the call would pass the following query parameter:/mobile/platform/users/~?fields=firstName,lastNameThe call returns a response like this:
{ "firstName": "Joe", "lastName": "Doe" }To retrieve only the attributes from user's Oracle Identity Cloud Service profile, the call would pass the following query parameter:
/mobile/platform/users/~?fields=attributesThe call returns a response like this, where the
attributesobject contains raw profile attributes, including the same custom properties that are in a response fromGET /mobile/platform/users/me.{ "attributes": { "id": "2e63bfeea6a14101b91256b4036dff94", "displayName": "Joe Doe", "emails": [ { "primary": false, "secondary": false, "value": "joe.doe@oracle.com", "type": "recovery", "verified": false } ], "name": { "givenName": "Joe", "familyName": "Mobile User", "formatted": "Test Mobile User" }, "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": { "employeeNumber": "245562716" }, "urn:ietf:params:scim:schemas:idcs:extension:custom:User": { "custom_attribute": "1076270704" }, "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User", "urn:ietf:params:scim:schemas:idcs:extension:custom:User" ] } }
Response
- application/json
200 Response
objectUser Information-
object Mobile User Information
Title:
Mobile User InformationInformation that's returned when the current user is a mobile user. -
object Virtual User Information
Title:
Virtual User InformationInformation that's returned when the current user is a virtual user. -
object Social User Information
Title:
Social User InformationAdditional Properties Allowed:trueInformation that's returned when the current user is a social user (that is, signed in using social identity).
objectMobile User Information-
attributes(optional):
object User Profile
Title:
User ProfileAdditional Properties Allowed:trueUser identity information that follows the System for Cross-Domain Identity Management (SCIM) standard. -
email(optional):
string
The email address for the user.
-
firstName(optional):
string
The first name of the user.
-
id:
string
The unique identifier for the user.
-
lastName(optional):
string
The last name of the user.
-
links:
array Links that each reference a single object.
Title:
Links that each reference a single object.Minimum Number of Items:1Unique Items Required:true -
username:
string
Pattern:
[a-zA-Z0-9][a-zA-Z0-9\-_\.\@]*The user name for the user.
objectVirtual User Information-
username:
string
Pattern:
[a-zA-Z0-9][a-zA-Z0-9\-_\.\@]*The user name for the user.
objectUser Profiletrue-
active(optional):
boolean
A Boolean value indicating whether the user is active.
-
addresses(optional):
array addresses
Physical mailing addresses for the user, such as work, home, and other.
-
displayName(optional):
string
Minimum Length:
2Maximum Length:150The display name. -
emails:
array emails
A complex attribute that represents emails.
-
entitlements(optional):
array entitlements
A list of entitlements for the user.
-
externalId(optional):
string
A user-provided identifier for the resource.
-
groups(optional):
array groups
A list of groups that the user belongs to, either thorough direct membership, nested groups, or dynamic calculation.
-
id:
string
Unique identifier for the SCIM resource.
-
idcsCreatedBy:
object Created By
Title:
Created ByThe user or app that created this resource. -
idcsLastModifiedBy(optional):
object Last Modified By
Title:
Last Modified ByThe user or app that modified this resource. -
ims(optional):
array ims
The user's instant messaging addresses.
-
locale(optional):
string
Minimum Length:
1Maximum Length:50The user's default location for purposes of localizing items such as currency, date and time format, and numerical representations. -
meta(optional):
object Metadata
Title:
MetadataA complex object that contains the resource's metadata. All sub-attributes are optional. -
name:
object Full Name
Title:
Full NameA complex object that contains attributes that represent the user's full name. -
nickName(optional):
string
Minimum Length:
5Maximum Length:100The user's nick name. -
password(optional):
string
Minimum Length:
1Maximum Length:500The user's password. -
phoneNumbers(optional):
array phoneNumbers
A list of the user's phone numbers.
-
photos(optional):
array photos
A list of URLs of photos for the user.
-
preferredLanguage(optional):
string
Minimum Length:
1Maximum Length:50The user's preferred written or spoken language, which is used for localized user interfaces. -
profileUrl(optional):
string
Minimum Length:
1Maximum Length:2000A fully-qualified URL to a page that represents the user's online profile. -
roles(optional):
array roles
A list of roles for the user that collectively represent who the user is.
-
schemas:
string
REQUIRED. An array of strings which allows introspection of the supported schema version for a SCIM representation as well any schema extensions supported by that representation. Each string value is a unique URI. This specification defines URIs for user and group, and a standard enterprise extension.
-
timezone(optional):
string
Minimum Length:
1Maximum Length:50The user's timezone. -
title(optional):
string
Minimum Length:
1Maximum Length:50The user's title. -
urn:ietf:params:scim:schemas:extension:enterprise:2.0:User(optional):
object Enterprise
Title:
EnterpriseEnterprise user information. -
urn:ietf:params:scim:schemas:oracle:idcs:extension:crossSso:User(optional):
object urn:ietf:params:scim:schemas:oracle:idcs:extension:crossSso:User
This extension defines attributes to manage the user account for cross-tenant SSO.
-
urn:ietf:params:scim:schemas:oracle:idcs:extension:me:User(optional):
object IDCS Self-Service Extension
Title:
IDCS Self-Service ExtensionIDCS self-service schema extension. -
urn:ietf:params:scim:schemas:oracle:idcs:extension:mfa:User(optional):
object Multi-Factor Authentication
Title:
Multi-Factor AuthenticationThis extension defines attributes that are used to manage multi-factored authentication (MFA). -
urn:ietf:params:scim:schemas:oracle:idcs:extension:passwordState:User(optional):
object urn:ietf:params:scim:schemas:oracle:idcs:extension:passwordState:User
This extension defines attributes that are used to manage account passwords.
-
urn:ietf:params:scim:schemas:oracle:idcs:extension:posix:User(optional):
object POSIX
Title:
POSIXPOSIX user extension. -
urn:ietf:params:scim:schemas:oracle:idcs:extension:securityQuestions:User(optional):
object Security Question Extension
Title:
Security Question ExtensionThis extension defines attributes used to store the user's security questions. -
urn:ietf:params:scim:schemas:oracle:idcs:extension:selfRegistration:User(optional):
object Self-Registration
Title:
Self-RegistrationThis extension defines attributes used to manage the self-registration profile linked to the user. -
urn:ietf:params:scim:schemas:oracle:idcs:extension:user:User(optional):
object IDCS User Information
Title:
IDCS User InformationIdentity Cloud Serice (IDCS) user information. -
urn:ietf:params:scim:schemas:oracle:idcs:extension:userState:User(optional):
object urn:ietf:params:scim:schemas:oracle:idcs:extension:userState:User
This extension defines the attributes that are used to manage account passwords.
-
userName:
string
Minimum Length:
3Maximum Length:100The user name. -
userType(optional):
string
Allowed Values:
[ "Contractor", "Employee", "Intern", "Temp", "External", "Service" ]The organization-to-user relationship. -
x509Certificates(optional):
array x509Certificates
A list of x509 certificates issued to the user.
arrayLinks that each reference a single object.1true-
Array of:
object pagingLink
A single link used for pagination.
array-
Array of:
object Physical Mailing Address
Title:
Physical Mailing AddressA complex attribute that represents the user's physical mailing address, such as a work address or home address.
array-
Array of:
object Email Address
Title:
Email AddressA complex attribute that represents an email address.
array-
Array of:
object User's Entitlement
Title:
User's EntitlementA complex attribute that represents an entitlement that the user has.
array-
Array of:
object Group
Title:
GroupA group that the user belongs to, either thorough direct membership, nested groups, or dynamic calculation.
objectCreated By-
$ref(optional):
string
The user or app that created this resource.
-
display(optional):
string
The display name of the user or app that created this resource.
-
type(optional):
string
Allowed Values:
[ "User", "App" ]The type of resource,UserorApp, that created this resource. -
value(optional):
string
The ID of the SCIM resource that represents the user or app that created this resource.
objectLast Modified By-
$ref(optional):
string
The URI of the SCIM resource that represents the user or app that modified this resource.
-
display(optional):
string
The display name of the the user or app that modified this resource.
-
type(optional):
string
Allowed Values:
[ "User", "App" ]The type of resource,UserorApp, that modified this resource. -
value(optional):
string
The ID of the SCIM resource that represents the user or app that modified this resource.
array-
Array of:
object Instant Messaging Service (IMS) Address
Title:
Instant Messaging Service (IMS) AddressA complex attribute that represents an IMS address.
objectMetadata-
created(optional):
string
The date and time, in DateTime format, that the resource was added.
-
lastModified(optional):
string
The most recent date and time, in DateTime format, that the details of this resource were updated. If this resource has never been modified since its initial creation, then the value is the same as the
createdvalue. -
location(optional):
string
The URI of the returned resource.
-
resourceType(optional):
string
Type of resource. For example,
UsersorGroups. -
version(optional):
string
The version of the returned resource.
objectFull Name-
familyName(optional):
string
Minimum Length:
1Maximum Length:50The user's last name. -
formatted(optional):
string
Minimum Length:
1Maximum Length:256The user's full name. -
givenName(optional):
string
Minimum Length:
1Maximum Length:50The user's first name. -
honorificPrefix(optional):
string
Minimum Length:
1Maximum Length:25Honorific that prefixes the user's name. -
honorificSuffix(optional):
string
Minimum Length:
1Maximum Length:25Honorific that suffixes the user's name. -
middleName(optional):
string
Minimum Length:
1Maximum Length:100The user's middle name.
array-
Array of:
object phoneNumbers
A complex attribute that represents a phone number.
array-
Array of:
object Photo URL
Title:
Photo URLA complex attribute that represents a photo URL.
array-
Array of:
object Role
Title:
RoleA complex attribute that represents a role that's been granted to the user.
objectEnterprise-
costCenter(optional):
string
Minimum Length:
1Maximum Length:50The name of a cost center. -
department(optional):
string
Minimum Length:
1Maximum Length:50The name of a department. -
division(optional):
string
Minimum Length:
1Maximum Length:50The name of a division. -
employeeNumber(optional):
string
Minimum Length:
1Maximum Length:50A numeric or alphanumeric identifier that's assigned to a person. -
manager(optional):
object Manager
Title:
ManagerThe user's manager. A complex type that optionally allows representation of an organizational hierarchy by referencing theidattribute of another user. -
organization(optional):
string
Minimum Length:
1Maximum Length:50The name of an organization.
objectobjectIDCS Self-Service Extension-
currentPassword(optional):
string
Minimum Length:
1Maximum Length:500The current password is required if the user attempts to change the values of attributes that are used in recovering or verifying the user's own identity. If the current password is specified, it's used to authenticate the user regardless of any change in these attribute values.
objectMulti-Factor Authentication-
bypassCodes(optional):
array bypassCodes
A list of bypass codes that belong to the user.
-
devices(optional):
array devices
A list of devices that belong to the user.
-
loginAttempts(optional):
integer
The number of incorrect multi-factor authentication login attempts that the user made. The user is locked if this reaches the threshold specified in the
maxIncorrectAttemptsattribute inAuthenticationFactorSettings. -
mfaStatus(optional):
string
Allowed Values:
[ "ENROLLED", "IGNORED", "UN_ENROLLED", "DISABLED" ]The user's opted-in status for multi-factor authentication (MFA). -
preferredAuthenticationFactor(optional):
string
Minimum Length:
1Maximum Length:40Allowed Values:[ "SMS", "TOTP", "PUSH", "OFFLINETOTP", "SECURITY_QUESTIONS", "VOICE" ]The preferred authentication factor type. -
preferredDevice(optional):
object preferredDevice
The user's preferred device.
-
trustedUserAgents(optional):
array trustedUserAgents
A list of the trusted user agents that the user owns. Multi-factored authentication uses trusted user agents to authenticate users. A user agent is a software application that a user uses to issue requests. For example, a user agent could be a particular browser (possibly one of several executing on a desktop or laptop) or a particular mobile application (again, one of several executing on a particular mobile device). A user agent is trusted once the multi-factored authentication has verified it in some way.
objectobjectPOSIX-
gecos(optional):
string
General information about the POSIX account such as the account owner's real name and phone number.
-
gidNumber(optional):
integer
The primary group identifier of the POSIX user.
-
homeDirectory(optional):
string
The absolute path to the home directory of the POSIX account.
-
loginShell(optional):
string
The path to the login shell of the POSIX account.
objectSecurity Question Extension-
secQuestions(optional):
array secQuestions
The security questions and answers that were provided by the end-user for account recovery and/or multi-factor authentication (MFA). While setting up security questions, the end-user can also provide a hint along with the answer.
objectSelf-Registration-
consentGranted(optional):
boolean
A boolean value that indicates whether the consent is granted.
-
selfRegistrationProfile(optional):
object selfRegistrationProfile
The self-registration profile that's used when the user is self-registered.
objectIDCS User Information-
accounts(optional):
array accounts
A list of accounts that are assigned to the user.
-
appRoles(optional):
array appRoles
A list of the user's application roles. These roles may have been assigned thorough direct membership and nested groups, or were dynamically calculated.
-
bypassNotification(optional):
boolean
A Boolean value that indicates whether to send an email notification after creating the user. Update and replace operations don't use this attribute.
-
creationMechanism(optional):
string
Allowed Values:
[ "bulk", "api", "adsync", "idcsui", "import", "selfreg" ]The user creation mechanism. -
doNotShowGettingStarted(optional):
boolean
A Boolean value that indicates whether to hide the getting started page.
-
grants(optional):
array grants
A list of the grants that are assigned to the user.
-
internalName(optional):
string
Minimum Length:
1Maximum Length:100The internal user name. -
isFederatedUser(optional):
boolean
A Boolean value that indicates whether the user is federated.
-
provider(optional):
string
Allowed Values:
[ "facebook", "google", "IDCS", "twitter" ]The registration provider.
objectarray-
Array of:
object x509 Certificate
Title:
x509 CertificateA complex attribute that represents a certificate that's been issued to the user.
objectPhysical Mailing Address-
country(optional):
string
Minimum Length:
1Maximum Length:50The name of the country. -
formatted(optional):
string
Minimum Length:
1Maximum Length:500The full mailing address that's formatted for display or a mailing label. The value can contain newline characters. -
locality(optional):
string
Minimum Length:
1Maximum Length:50The city or locality. -
postalCode(optional):
string
Maximum Length:
50The zipcode or postal code. -
primary(optional):
boolean
A Boolean value that indicates the primary or preferred address. Only one address may have this value set to `true`.
-
region(optional):
string
Minimum Length:
1Maximum Length:100The state or region. -
streetAddress(optional):
string
Minimum Length:
1Maximum Length:200The full street address component, which can include the house number, street name, PO Box, and multi-line extended street address information. The value can contain newline characters. -
type:
string
Allowed Values:
[ "work", "home", "other" ]A label that indicates the address's function. For example, 'work' or 'home'.
objectEmail Address-
primary(optional):
boolean
A Boolean value that indicates whether the email address is the primary email address. Only one email address may have this value set to
true. -
type:
string
Allowed Values:
[ "work", "home", "other", "recovery" ]The type of email address -
value:
string
Minimum Length:
5Maximum Length:100An email address.
objectUser's Entitlement-
display(optional):
string
Minimum Length:
1Maximum Length:100A human-readable name, which is primarily used for display purposes. -
primary(optional):
boolean
A Boolean value that indicates the primary or preferred entitlement. Only one entitlement may have this value set to `true`.
-
type:
string
A label that indicates the entitlement's function.
-
value:
string
Minimum Length:
1Maximum Length:100The value of an entitlement.
objectGroup-
$ref(optional):
string
The URI of the corresponding group resource to which the user belongs.
-
display(optional):
string
A human-readable name, which is primarily used for display purposes. READ-ONLY.
-
type(optional):
string
Allowed Values:
[ "direct", "indirect" ]A label that indicates the group's function. For example, 'direct' or 'indirect'. -
value:
string
The identifier of the group.
objectInstant Messaging Service (IMS) Address-
display(optional):
string
Minimum Length:
1Maximum Length:100A human-readable name, which is primarily used for display purposes. -
primary(optional):
boolean
A Boolean value that indicates the primary or preferred IM addess. Only one IM address may have this value set to `true`.
-
type:
string
Allowed Values:
[ "aim", "gtalk", "icq", "xmpp", "msn", "skype", "qq", "yahoo" ]A label that indicates the IM address's function. For example, `aim`, `gtalk`, or `mobile` -
value:
string
Minimum Length:
1Maximum Length:100The user's instant messaging address.
object-
display(optional):
string
Minimum Length:
1Maximum Length:100A human-readable name, which is primarily used for display purposes. READ ONLY -
primary(optional):
boolean
A Boolean value that indicates the whether this number is the preferred or primary phone number. Only one phone number may have this value set to
true. -
type:
string
Allowed Values:
[ "work", "home", "mobile", "fax", "pager", "other", "recovery" ]A label that indicates the phone number's function. For example,work,home, ormobile. -
value:
string
Minimum Length:
1Maximum Length:100The user's phone number. -
verified(optional):
boolean
A Boolean value that indicates if the phone number is verified.
objectPhoto URL-
display(optional):
string
Minimum Length:
1Maximum Length:100A human-readable name, which is primarily used for display purposes. -
primary(optional):
boolean
A Boolean value that indicates the primary or preferred photo. Only one photo may have this value set to
true. -
type:
string
Allowed Values:
[ "photo", "thumbnail" ]A label that indicates the photo's function. For example,photoorthumbnail. -
value:
string
Minimum Length:
1Maximum Length:2000The URL of a photo for the user.
objectRole-
display(optional):
string
A human-readable name, which is primarily used for display purposes.
-
primary(optional):
boolean
A Boolean value that indicates the primary or preferred role. Only one role may have this value set to `true`.
-
type:
string
A label that indicates the role's function.
-
value:
string
Maximum Length:
100The value of the role.
objectManagerid attribute of another user.-
$ref(optional):
string
The URI of the SCIM resource that represents the user's manager. RECOMMENDED.
-
displayName(optional):
string
The display name of the user's manager. OPTIONAL and READ-ONLY.
-
value(optional):
string
Minimum Length:
1Maximum Length:40The identifier of the resource (that follows the SCIM standard), that represents the user's manager. RECOMMENDED.
array-
Array of:
object Bypass Code
Title:
Bypass CodeThe user's bypass code.
array-
Array of:
object User Device
Title:
User DeviceA device that belongs to the user.
object-
$ref(optional):
string
The URI that corresponds to the device resource.
-
value(optional):
string
The identifier of the user's preferred device
array-
Array of:
object Trusted User Agent
Title:
Trusted User AgentMulti-factored authentication uses trusted user agents to authenticate users. A user agent is a software application that a user uses to issue requests. For example, a user agent could be a particular browser (possibly one of several executing on a desktop or laptop) or a particular mobile application (again, one of several executing on a particular mobile device). A user agent is trusted once the multi-factored authentication has verified it in some way.
objectBypass Code-
$ref(optional):
string
The URI of the corresponding `BypassCode` resource that belongs to the user.
-
value:
string
The identifier of the user's bypass code.
objectUser Device-
$ref(optional):
string
The URI of the corresponding device resource the belongs to the user.
-
display(optional):
string
A human-readable name, which is primarily used for display purposes. READ-ONLY.
-
value:
string
The identifier of the user's device.
objectTrusted User Agent-
$ref(optional):
string
The URI of the corresponding trusted user agent resource.
-
display(optional):
string
A human-readable identifier for this trusted user agent, which is used primarily for display purposes. READ-ONLY.
-
value:
string
The identifier of the user's trusted user agent.
array-
Array of:
object Security Question
Title:
Security QuestionSecurity question and answer for account recovery and/or multi-factor authentication (MFA). While setting up security questions, you can also provide a hint along with the answer.
objectSecurity Question-
$ref(optional):
string
The URI of the corresponding `SecurityQuestion` resource
-
answer:
string
Minimum Length:
1Maximum Length:500The answer provided by the user for the security question. -
hintText(optional):
string
The user-provided hint for the answer.
-
value:
string
The ID of the question that was selected by the user while setting up the security question.
object-
$ref(optional):
string
The URI of the profile.
-
display(optional):
string
A human-readable name, which is primarily used for display purposes. READ-ONLY.
array-
Array of:
object User Account
Title:
User AccountA complex attribute that represents an account that's been assigned to the user.
array-
Array of:
object Application Role
Title:
Application RoleAn application role that's been granted to the user, either thorough direct membership, nested groups, or dynamic calculation.
array-
Array of:
object Grant
Title:
GrantA grant that's been assigned to the user.
objectUser Account-
$ref(optional):
string
Account management information URI.
-
appId(optional):
string
The application identifier.
-
value(optional):
string
The account identifier.
objectApplication Role-
$ref(optional):
string
The URI of the corresponding `appRole` resource to which the user belongs
-
adminRole(optional):
boolean
If true, then the role provides administrative access privileges. READ-ONLY.
-
appId(optional):
string
The ID of the parent app. READ-ONLY.
-
appName(optional):
string
The name of parent app. READ-ONLY.
-
display(optional):
string
A human-readable name, which is primarily used for display purposes. READ-ONLY.
-
legacyGroupName(optional):
string
The name of the legacy group that's associated with this `AppRole`.
-
type(optional):
string
Allowed Values:
[ "direct", "indirect" ]A label that indicates the role's function, such as `direct` or `indirect`. -
value(optional):
string
The identifier of the role.
objectGrant-
$ref(optional):
string
The grant's URI.
-
appId(optional):
string
The app identifier.
-
grantMechanism(optional):
string
Allowed Values:
[ "IMPORT_APPROLE_MEMBERS", "ADMINISTRATOR_TO_USER", "ADMINISTRATOR_TO_GROUP", "SERVICE_MANAGER_TO_USER", "ADMINISTRATOR_TO_APP", "SERVICE_MANAGER_TO_APP", "OPC_INFRA_TO_APP", "GROUP_MEMBERSHIP" ]Indicates how (or by what component) some app (or app entitlement) was granted.
A customer or the UI should use only the values that start with `ADMINISTRATOR`:
- `ADMINISTRATOR_TO_USER` is for a direct grant to a specific user.
- `ADMINISTRATOR_TO_GROUP` is for a grant to a specific group, which results in indirect grants to users who are members of that group.
- `ADMINISTRATOR_TO_APP` is for a grant to a specific app. The grantee (client) app gains access to the granted (server) app.
-
value(optional):
string
The grant identifier.
objectx509 Certificate-
display(optional):
string
A human-readable name, which is primarily used for display purposes.
-
primary(optional):
boolean
A Boolean value that indicates the primary or preferred certificate. Only one certificate may have this value set to `true`.
-
type(optional):
string
A label that indicates the certificate's function.
-
value:
object value
The value of an X509 certificate.
objectobjectIdentity Providertrue-
facebook(optional):
object Facebook Information
Title:
Facebook InformationAdditional Properties Allowed:trueFacebook social user information.
objectFacebook Informationtrue{
"firstName":"Joe",
"lastName":"Doe",
"attributes":{
"emails":[
{
"secondary":false,
"verified":false,
"type":"recovery",
"value":"joe.doe@oracle.com",
"primary":false
}
],
"displayName":"Joe Doe",
"schemas":[
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User",
"urn:ietf:params:scim:schemas:idcs:extension:custom:User"
],
"name":{
"formatted":"Test Mobile User",
"givenName":"Joe",
"familyName":"Mobile User"
},
"id":"2e63bfeea6a14101b91256b4036dff94",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User":{
"employeeNumber":"245562716"
},
"urn:ietf:params:scim:schemas:idcs:extension:custom:User":{
"custom_attribute":"1076270704"
}
},
"links":[
{
"rel":"canonical",
"href":"/mobile/platform/users/joe"
},
{
"rel":"self",
"href":"/mobile/platform/users/joe"
}
],
"id":"295e450a-63f0-41fa-be43-cd2dbcb21598",
"email":"joe@example.com",
"username":"joe"
}
400 Response
The operation can't be performed.
-
Content-Type: string
The media type of the error message, which is
application/json.
objectError-
detail:
string
Message that provides the error details.
-
o:ecid:
string
Execution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components.
-
o:errorCode:
string
The service's error code.
-
o:errorDetails(optional):
array o:errorDetails
Minimum Number of Items:
0Included when the error is caused by multiple issues. -
o:errorPath:
string
The relative point in the API path where the error occurred.
-
status:
integer
HTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details.
-
title:
string
Summary of the problem.
-
type:
string
The URI to the link that provides details about the HTTP status code.
array0-
Array of:
object Error Detail
Title:
Error Detail
objectError Detail-
instance:
string
URI to the link that provides more detailed information about the error.
-
o:errorCode:
string
The service's error code.
-
o:errorPath:
string
The relative point in the API path where the error occurred.
-
title:
string
Summary of the problem.
-
type:
string
The URI to the link that provides details about the HTTP status code.
{
"o:errorCode":"MOBILE-58060",
"detail":"Unable to use API virtualization for calls without any mobile backend context.",
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Cannot call API",
"o:errorPath":"/mobile/platform/users/joe",
"o:ecid":"cde040005cd5983e:4372d958:14c8c4c2d6c:-8000-000000000032b9d5, 0",
"status":400
}
401 Response
The operation can't be performed due to one of the following reasons:
- The user doesn't exist.
- The password is incorrect.
- The
AuthorizationHTTP request header wasn't specified. - The user name doesn't match the user name in the
AuthorizationHTTP request header.
-
Content-Type: string
The media type of the error message, which is
application/json.
objectError-
detail:
string
Message that provides the error details.
-
o:ecid:
string
Execution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components.
-
o:errorCode:
string
The service's error code.
-
o:errorDetails(optional):
array o:errorDetails
Minimum Number of Items:
0Included when the error is caused by multiple issues. -
o:errorPath:
string
The relative point in the API path where the error occurred.
-
status:
integer
HTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details.
-
title:
string
Summary of the problem.
-
type:
string
The URI to the link that provides details about the HTTP status code.
array0-
Array of:
object Error Detail
Title:
Error Detail
objectError Detail-
instance:
string
URI to the link that provides more detailed information about the error.
-
o:errorCode:
string
The service's error code.
-
o:errorPath:
string
The relative point in the API path where the error occurred.
-
title:
string
Summary of the problem.
-
type:
string
The URI to the link that provides details about the HTTP status code.
{
"o:errorCode":"MOBILE-15209",
"detail":"401 - Unauthorized",
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Unauthorized",
"o:errorPath":"/mobile/platform/users/joe",
"o:ecid":"cde040005cd5983e:4372d958:14c8c4c2d6c:-8000-000000000033b51c, 0",
"status":401
}
403 Response
The operation can't be performed due to one of the following reasons:
- The user doesn't have a role that's associated with the mobile backend.
- The value of the
AuthorizationHTTP request header that follows theBasicor 'Bearer' authentication scheme is either missing or invalid.
406 Response
The MIME media type isn't supported. Only application/json is supported. Either remove the Accept header or specify a media type that's supported.
-
Content-Type: string
The media type of the error message, which is
application/json.
objectError-
detail:
string
Message that provides the error details.
-
o:ecid:
string
Execution context ID, which is a unique identifier to correlate events or requests that are associated with the same transaction across several components.
-
o:errorCode:
string
The service's error code.
-
o:errorDetails(optional):
array o:errorDetails
Minimum Number of Items:
0Included when the error is caused by multiple issues. -
o:errorPath:
string
The relative point in the API path where the error occurred.
-
status:
integer
HTTP status code. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more details.
-
title:
string
Summary of the problem.
-
type:
string
The URI to the link that provides details about the HTTP status code.
array0-
Array of:
object Error Detail
Title:
Error Detail
objectError Detail-
instance:
string
URI to the link that provides more detailed information about the error.
-
o:errorCode:
string
The service's error code.
-
o:errorPath:
string
The relative point in the API path where the error occurred.
-
title:
string
Summary of the problem.
-
type:
string
The URI to the link that provides details about the HTTP status code.
{
"o:errorCode":"MOBILE-92516",
"detail":"The MIME media type isn't supported, only application/json is supported. Either remove the Accept header or specify a media type that is supported.",
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Unsupported media type",
"o:errorPath":"/mobile/platform/users/joe",
"o:ecid":"cde040005cd5983e:4372d958:14c8c4c2d6c:-8000-000000000033ddba, 0",
"status":406
}
Examples
The following example shows how to get the values of the firstName and lastName properties that are associated with the current IDCS user by submitting a GET request on the REST resource using cURL. These are some of the user object properties that are defined for the realm that the user is a member of. You can get properties for the current user only. The ~ (tilde) gets the user name for the current user from the Authorization header.
curl -i
-X GET
-u mobile.user@example.invalid:password
-H "Oracle-Mobile-Backend-ID: ABCD9278-091f-41aa-9cb2-184bd0586fce"
https://fif.cloud.oracle.com/mobile/platform/users/~?fields=firstName,lastName
Example of Response Header
The following shows an example of the response header.
200 OK
Content-Type: application/json
Date: Mon, 28 Jan 2019 18:08:57 GMT
Example of Response Body for an IDCS User
The following example shows, in JSON format, the contents of the response body, which lists the requested properties (or all properties if no path parameters were specified):
{
"firstName": "mobile",
"lastName": "user"
}
Example of Response Body for a Social User
The following example shows, in JSON format, the contents of the response body when the current user is a social user:
{
"username": "1 :623:165",
"mobileExtended": {
"identityProvider": {
"facebook": {
"accessToken":"CAAI...YZD"
}
}
}
}