<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hi Alan,<br />
<br />
The only way I was able to get user’s info apart from query is this:<br /></div>
<pre>Users_Record_Model::getInstanceById('userid','Users');</pre>
<div dir="auto"><br />
Userid is not in form of 19xid<br />
<br />
BR</div>
</div>
<div name="messageSignatureSection"><br />
<div class="matchFont"><font color="#C6C6C6"><b><span style="">Sukhdev Mohan</span></b></font><span style=""></span><br />
<font color="#999999"><b><span style="">Developer</span></b></font><br /></div>
</div>
<div name="messageReplySection">On 5 Oct 2021, 22:21 +0200, Alan Lord <alanslists@gmail.com>, wrote:<br />
<blockquote type="cite" style="border-left-color: grey; border-left-width: thin; border-left-style: solid; margin: 5px 5px;padding-left: 10px;">How to get the roleid?<br />
<br />
I have tested vtws_retrieve('19x1', $user) on 7.1, 7.2. 7.3 & 7.4 and<br />
the roleid is always empty. (Also tried a different user id).<br />
<br />
TIA<br />
<br />
Al<br />
<br />
_______________________________________________<br />
http://www.vtiger.com/<br /></blockquote>
</div>
</body>
</html>