Get current user's profile

GET {{baseUrl}}/.api/api.svc/user/viewprofile?allFields={{$randomBoolean}}

This endpoint will return profile data for the user that is currently signed in. If this is being run in a custom widget, the user authenticated to the digital workplace will be the subject. If the endpoint is being called from a service account, the profile information returned will be from that service account.

Request Params

KeyDatatypeRequiredDescription
allFieldsstringBoolean

If set to true, all fields will be included in the response. If false, empty fields will be omitted. |

HEADERS

KeyDatatypeRequiredDescription
AcceptstringThe type of response data to request. By default this endpoint will respond with XML.

The options are:

  • application/json
  • application/xml |

RESPONSES

status: OK

{"minRequestPeriod":0,"requestSupportCode":637801059537597713,"dictionary":null,"response":{"__type":"IglooList:http://schemas.iglooplatform.com/Igloo.Old.Common","startIndex":0,"count":2,"totalCount":"2","items":[{"__type":"ProfileField:http://schemas.iglooplatform.com/Igloo.Old.Common","FieldId":"45","HasPerms":true,"Name":"company","Privacy":2,"Type":1,"UserId":"{{$randomUUID}}","Value":"{{$randomCompanyName}}"},{"__type":"ProfileField:http://schemas.iglooplatform.com/Igloo.Old.Common","FieldId":"47","HasPerms":true,"Name":"occupation","Privacy":2,"Type":1,"UserId":"{{$randomUUID}}","Value":"dev"}]}}