Repository.Project.GetUserAccessibleProjects

Returns an array of NameIDPair objects containing all project names and their IDs from the current repository to which the user has access. Connected user must have Admin permissions.

Syntax
.Project.GetUserAccessibleProjects(UserLogin)

Parameters
UserLogin
 * Required. String. The user login (domain\user). If the input is empty then the method returns the projects for the currently connected user.

Example
VBA|VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository ListofProjects NameIDPair sUserLogin String sUserLogin = "myDomain\TestUser" ListOfProjects = MyRepository.Project.GetUserAccessibleProjects(sUserLogin)