{"id":3534,"date":"2020-01-13T19:28:56","date_gmt":"2020-01-13T18:28:56","guid":{"rendered":"https:\/\/help.cirrus-shield.com\/?post_type=docs&#038;p=3534"},"modified":"2024-12-20T15:01:18","modified_gmt":"2024-12-20T14:01:18","slug":"get-user-info","status":"publish","type":"docs","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-user-info\/","title":{"rendered":"Get User info"},"content":{"rendered":"\n<p>This function is used to get any user&#8217;s information using either his Id or his username. The returned data is: Id, Google Calendar ID , Language , Locale, &nbsp;time zone, &nbsp;time zone number.<\/p>\n\n\n\n<p>When this function is called, if the Id is given as a parameter it will be considered first and then if the username is provided as a parameter it will be considered. One or the other parameter has to be provided with the other being null but the two parameters cannot be null.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Function<\/strong>: GetUser(UserName, UserGUID)<\/li>\n\n\n\n<li><strong>Optional Parameter: <\/strong>useLocaleFormatting [bool]: allows returning fields of type Date\/DateTime\/Number\/Currency\/Percent in the user&#8217;s locale format. translate to french<\/li>\n\n\n\n<li><strong>Usage<\/strong>: var objUser = GetUser(UserName, UserGUID);<\/li>\n\n\n\n<li><strong>Output<\/strong>:\n<ul class=\"wp-block-list\">\n<li>Id: &#8220;1792087569727490718&#8221;<\/li>\n\n\n\n<li>Google_Calendar_ID: &#8220;Anna.Claire@gmail.fr&#8221;<\/li>\n\n\n\n<li>Language: &#8220;fr&#8221;<\/li>\n\n\n\n<li>LocaleSidKey: &#8220;fr_FR&#8221;<\/li>\n\n\n\n<li>TimeZoneSidKey: &#8220;Europe_Paris&#8221;<\/li>\n\n\n\n<li>TimeZoneSidKeyNumber: &#8220;+01&#8221;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"author":1,"featured_media":0,"parent":945,"menu_order":7,"comment_status":"open","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_tag":[],"class_list":["post-3534","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/3534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/comments?post=3534"}],"version-history":[{"count":3,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/3534\/revisions"}],"predecessor-version":[{"id":11182,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/3534\/revisions\/11182"}],"up":[{"embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/945"}],"next":[{"title":"Get Selected Record GUIDS","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-selected-record-guids\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/1551"}],"prev":[{"title":"Get Current User Info","link":"https:\/\/help.cirrus-shield.com\/en\/docs\/developer-guide\/javascript-library\/get-current-user-info\/","href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/docs\/3528"}],"wp:attachment":[{"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/media?parent=3534"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/help.cirrus-shield.com\/en\/wp-json\/wp\/v2\/doc_tag?post=3534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}