I searched at class UserInfoHelp | getUsersInUserGroup and I create this line of code at Job:
UserGroupList userGroupList; UserGroupInfo userGroupInfo; UserInfo userInfo; ;
select userGroupList
where userGroupList.userId == curuserid();
select userGroupInfo
where userGroupInfo.id == userGroupList.groupId;
box::info(userGroupList.groupId + ' ' + userGroupInfo.name);So it works. :)
Sonny Wibawa Adi
Mister L <[EMAIL PROTECTED]> wrote:
Current company: curext() Current user: curuserid() Current usergroup: (???) Take a look into the tables...
best regards Herbert
-----Ursprüngliche Nachricht----- Von: Sonny Wibawa Adi [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 28. Oktober 2003 09:01 An: [EMAIL PROTECTED] Betreff: [development-axapta] how to get current user info
Hi all,
I am a newbie and I do some scripting for checking the security group for current user logged on. The question is: Can I know the current userGroupId (admin, etc.) and current company (DAT, etc.)?
Thx, Sonny Wibawa Adi
_____
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
_____
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
Yahoo! Groups Sponsor ADVERTISEMENT
click here
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

