Documentation

user.current

Get current user information. Method supports secure calling

Parameters

Method has no parameters.

Call

BX24.callMethod('user.current', {}, function(res){
    alert('Hi, ' + res.data().NAME + '!');
});

Request (xml for clarity of reply)

https://my.bitrix24.com/rest/user.current.xml?auth=7c9d8f00ea0ddd9e02cab3eb2b3bd0d1

Response

<response>
 <result>
  <ID>1</ID>
  <ACTIVE>1</ACTIVE>
  <EMAIL>sigurd@example.com</EMAIL>
  <NAME>Admin</NAME>
  <LAST_NAME>
  <SECOND_NAME>
  <PERSONAL_GENDER>
  <PERSONAL_PROFESSION>
  <PERSONAL_WWW>
  <PERSONAL_BIRTHDAY>1955-04-10T00:00:00+03:00</PERSONAL_BIRTHDAY>
  <PERSONAL_PHOTO>/upload/main/80c/44169_C5_PrimalWaterE500CC.jpg</PERSONAL_PHOTO>
  <PERSONAL_ICQ>
  <PERSONAL_PHONE>
  <PERSONAL_FAX>
  <PERSONAL_MOBILE>
  <PERSONAL_PAGER>
  <PERSONAL_STREET>
  <PERSONAL_CITY>
  <PERSONAL_STATE>
  <PERSONAL_ZIP>
  <PERSONAL_COUNTRY>0</PERSONAL_COUNTRY>
  <WORK_COMPANY>
  <WORK_POSITION>
  <UF_DEPARTMENT>128</UF_DEPARTMENT>
  <UF_INTERESTS>
  <UF_SKILLS>
  <UF_WEB_SITES>
  <UF_XING>
  <UF_LINKEDIN>
  <UF_FACEBOOK>
  <UF_TWITTER>
  <UF_SKYPE>
  <UF_DISTRICT>
  <UF_PHONE_INNER>
 </result>
</response>


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2017, «Bitrix Inc.», 2017