Repository.Project.GetUserPermissions

Returns an array of UserPermissionEnum of all permissions the user has for the specified project. Connected user must have Admin permissions to obtain the list of permissions for another user. Admin permissions are not required to a list of permissions for your own account.

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 = MyRepository.Project.GetAllProjects(0).ID  ListofPermissions= MyRepository.Project.GetUserAccessibleProjects(sUserLogin, iProjectID)