Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What would be the fastest way to find out if the current user is a member of some specific group?

fastest group user
0
Posted

What would be the fastest way to find out if the current user is a member of some specific group?

0

The fastest way is to check user’s primary group. Each user has one primary group, which is identified by ID. (See TNTUserMan.UserInfo.PrimaryGroupID property). You may also obtain the list of all groups that the user is member of by using MemberOfGlob and MemberOfLocal properties. You may use TNTUserMan.LogonUserName property to determine the name of a logged on user. This name will include the name of the domain that the user belongs to: “DOMAINuser”.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123