Repository.Project.GetUserPermissions

Returns an array of UserPermissionsEnum of all permissions the user has for the specified project. Connected user must have Admin permissions.

Syntax
.Project.GetUserPermissions(UserLogin, ProjectID)

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.

ProjectID
 * Required. Integer. The project ID for which permissions are to be checked.

Example
VBA|VB.NET MyRepository Repository MyRepository.ConnectToAccessRepository ListofPermissions UserPermissionsEnum sUserLogin String iProjectID Integer sUserLogin = "myDomain\TestUser" iProjectID = 10 ListofPermissions= MyRepository.Project.GetUserAccessibleProjects(sUserLogin, iProjectID)