Community
Showing results for 
Search instead for 
Do you mean 
Reply

List of Users

New Member
Posts: 2
Country: Canada

List of Users

How do you get a list of users from the current database? I have seen reference to this code:

 

Dim theUsers As Users() = ActApp.ActFramework.Users.GetUsers()

 

But is does not seem to work for Act! 2010

Employee
Posts: 1,163
Country: USA

Re: List of Users

That method requires a parameter, GetUses(Feature feature), if you don't want to supply the feature that user is a manager of I think you can use null. Also you could get all the active users like so:

 

User[] users = ActApp.ActFramework.Users.ActiveUsers;

Matthew Wood
Act! SDK Support
Community Moderator
New Member
Posts: 2
Country: Canada

Re: List of Users

Thanks Matthew, that worked perfectly. Regards, Lee