{"id":1154,"date":"2022-02-11T16:16:15","date_gmt":"2022-02-11T16:16:15","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=1154"},"modified":"2022-08-12T16:08:41","modified_gmt":"2022-08-12T16:08:41","slug":"get-user-id","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/get-user-id\/","title":{"rendered":"Get User ID"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Returns the ID of a selected User. The list contains active users with the type Regular User or System Administrator User from the Sugar instance which metadata is loaded in the Project. Commonly is used to set&nbsp;<em>assigned to<\/em>&nbsp;for a record with <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/set-entity-attributes\/\">Set Entity Attributes<\/a><\/p>\n\n\n\n<p><strong>inputs:&nbsp;<\/strong><\/p>\n\n\n\n<p>select needed user from the dropdown. Please note that list contains&nbsp;<em>active<\/em>&nbsp;users with the type&nbsp;<em>Regular User<\/em>&nbsp;or&nbsp;<em>System Administrator User<\/em>.<\/p>\n\n\n<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p>Tip: is there is no needed user in the list, e.g. user is deactivated, get the user ID from the Sugar and use it in constant String:<\/p>\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-166-b04dcc1c2fcd45c2acbfeb42339b8573.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-166-b04dcc1c2fcd45c2acbfeb42339b8573.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\n<\/div>\n\n\n<p><strong>outputs:&nbsp;<\/strong><\/p>\n\n\n\n<p>id of the selected user. As an option use it as input to <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/set-entity-attributes\/\">Set Entity Attributes<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-166-1a7ac0ef1e3c40fda22b2693072d9067-1024x379.png\" alt=\"\" class=\"wp-image-1116\" width=\"737\" height=\"273\" srcset=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-166-1a7ac0ef1e3c40fda22b2693072d9067-1024x379.png 1024w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-166-1a7ac0ef1e3c40fda22b2693072d9067-300x111.png 300w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-166-1a7ac0ef1e3c40fda22b2693072d9067-768x284.png 768w, https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-166-1a7ac0ef1e3c40fda22b2693072d9067.png 1412w\" sizes=\"auto, (max-width: 737px) 100vw, 737px\" \/><\/figure>\n<div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_1154' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-1154\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-a70e8690802c0' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-a70e8690802c0'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='1154' \n                                      data-rating='0'\n                                      data-rater-starsize='24'\n                                      data-rater-readonly='false'\n                                      data-rater-nonce='fa81b01ba5' \n                                      data-issingular='false'\n                                    ><\/div><div class=\"yasr-vv-stats-text-container\" id=\"yasr-vv-stats-text-container-a70e8690802c0\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"1154\" \n                               id=\"yasr-stats-dashicon-a70e8690802c0\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-a70e8690802c0\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-a70e8690802c0\">0<\/span>  Average: <span id=\"yasr-vv-average-container-a70e8690802c0\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-a70e8690802c0' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-a70e8690802c0' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Returns the ID of a selected User. The list contains active users with the type Regular User or System Administrator User from the Sugar instance which metadata is loaded in the Project. Commonly is used to set&nbsp;assigned to&nbsp;for a record with Set Entity Attributes inputs:&nbsp; select needed user from the dropdown. Please note that list &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-user-id\/\"> <span class=\"screen-reader-text\">Get User ID<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"tags":[],"class_list":["post-1154","page","type-page","status-publish","hentry"],"yasr_visitor_votes":{"number_of_votes":0,"sum_votes":0,"stars_attributes":{"read_only":false,"span_bottom":false}},"_links":{"self":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1154","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/comments?post=1154"}],"version-history":[{"count":5,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1154\/revisions"}],"predecessor-version":[{"id":2151,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1154\/revisions\/2151"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=1154"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=1154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}