Using Connect Enterprise Web Services |
|||
| Action reference > principal-info | |||
Breeze 4 and Breeze 5; Connect Enterprise Web Services 6
Provides information about one principal, either a user or a group.
You must specify a principal-id. To find the principal-id, call principal-list, using a filter if necessary to limit the response.
http://server_name/api/xml?action=principal-info &principal-id=integer&session=BreezeSessionCookieValue
|
Name |
Type |
Required |
Description |
|---|---|---|---|
principal-id
|
Integer |
Y |
The ID of a user or group you want information about. You can get the ID by calling |
session
|
String |
N |
The value of the |
Results cannot be filtered or sorted.
<?xml version="1.0" encoding="utf-8" ?>
<results>
<status code=allowedValue />
<contact>
<email>string</email>
<first-name>string</first-name>
<last-name>string</last-name>
</contact>
<manager account-id=integer disabled=boolean has-children=boolean
is-hidden=boolean is-primary=boolean principal-id=integer
type=allowedValue>
<ext-login>string</ext-login>
<login>string</login>
<name>string</name>
<email>string</email>
<first-name>string</first-name>
<last-name>string</last-name>
<x-customfield1>string</x-customfield1>
<x-customfield2>string</x-customfield2>
...
</manager>
<preferences acl-id=integer lang=allowedValue
time-zone-id=allowedValue />
<principal account-id=integer disabled=boolean has-children=boolean
is-hidden=boolean is-primary=boolean principal-id=integer
type=allowedValue>
<description>string</description>
<ext-login>string</ext-login>
<login>string</login>
<name>string</name>
<email>string</email>
<first-name>string</first-name>
<last-name>string</last-name>
<x-customfield1>string</x-customfield1>
<x-customfield2>string</x-customfield2>
...
</principal>
</results>
|
Element |
Attribute |
Type |
Description |
|---|---|---|---|
results
|
|
Container |
Top-level element for the response. |
status
|
|
Empty, with attributes |
The status of the response. |
|
code
|
Allowed value |
A code indicating the response status (see status). |
contact
|
|
Container |
Information about the contact person for a principal. If the principal is a user, usually the same as information in |
email
|
|
String |
The e-mail address of the contact person. |
first-name
|
|
String |
The first name of the contact person. |
last-name
|
|
String |
The last name of the contact person. |
manager
|
|
Container |
Information describing a user's manager, who is also a principal. |
principal
|
|
Container |
Information describing the principal. |
|
account-id
|
Integer |
The ID of the account the principal belongs to. |
|
disabled
|
Datetime |
If the principal's account is valid, a null value returned as "". If the account is disabled, the date it was disabled. |
|
has-children
|
Boolean |
Whether the principal has children. Groups have children and users don't, so this attribute indicates whether the principal is a group. |
|
is-hidden
|
Boolean |
Whether the principal is hidden ( |
|
is-primary
|
Boolean |
Whether the principal is a built-in group ( |
|
principal-id
|
Integer |
The ID of the principal. |
|
type
|
Allowed value |
The type of principal (see type for values). |
description
|
|
String |
For a group, the group name. |
ext-login
|
|
String |
For a user, the login ID sent from an external network. By default, the same value as |
login
|
|
String |
The principal's login ID on Connect Enterprise. Can be the same as an e-mail address. |
name
|
|
String |
For a user, the full name, concatenated from |
email
|
|
String |
For a user, the e-mail address. |
first-name
|
|
String |
For a user, the first name. |
last-name
|
|
String |
For a user, the last name. |
x-
|
|
String |
A custom field defined for the user or group. |
preferences
|
|
Empty, with attributes |
Information about the principal's preferences. |
|
acl-id
|
Integer |
The principal's ID. |
|
lang
|
Allowed value |
The language setting the principal has chosen for Connect Enterprise applications. |
|
time-zone-id
|
Allowed value |
The time zone setting the principal has chosen for Connect Enterprise applications. |
https://example.com/api/xml?action=principal-info&principal-id=2006258745
<?xml version="1.0" encoding="utf-8" ?>
<results>
<status code="ok" />
<contact>
<email>bob@acme.com</email>
<first-name>Bob</first-name>
<last-name>Jones</last-name>
</contact>
<manager account-id="624520" disabled="" has-children="false"
is-hidden="false" is-primary="false" principal-id="2006282569"
type="user">
<ext-login>jazzdoe@example.com</ext-login>
<login>jazzdoe@example.com</login>
<name>jazz doe</name>
<email>jazzdoe@example.com</email>
<first-name>Jazz</first-name>
<last-name>Doe</last-name>
<x-2007017651>San Francisco</x-2007017651>
</manager>
<preferences acl-id="2006258745" lang="en" time-zone-id="4" />
<principal account-id="624520" disabled="" has-children="false"
is-hidden="false" is-primary="false" principal-id="2006258745"
type="user">
<ext-login>joy@acme.com</ext-login>
<login>joy@acme.com</login>
<name>Joy Smith</name>
<email>joy@acme.com</email>
<first-name>Joy</first-name>
<last-name>Smith</last-name>
<x-2007017651>San Francisco</x-2007017651>
</principal>
</results>
principal-list, principal-list-by-field, principal-update
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/breeze/6/xml_api/04a_ac19.htm