UserApi
extends AbstractApi
in package
Users are the members of your organization with the defined access levels (e.g. manager, admin, contributor).
Use API to get the list of organization users and to check the information on a specific user.
Table of Contents
Methods
- addProjectTeamMember() : ProjectTeamMemberAddedStatistics
- Add Project Member
- delete() : mixed
- Delete User
- deleteMemberFromProject() : void
- Delete Member From Project
- get() : User|null
- Get User Info
- getAuthenticatedUser() : User|null
- Get Authenticated User
- getProjectMemberPermissions() : ProjectTeamMemberResource
- Get Project Member Permissions
- invite() : User
- Invite User
- list() : ModelCollection
- List Users
- listProjectMembers() : ModelCollection
- List Project Members
- replaceProjectMemberPermissions() : ProjectTeamMemberResource
- Replace Project Member Permissions
- update() : User
- Update User
Methods
addProjectTeamMember()
Add Project Member
public
addProjectTeamMember(int $projectId, array<string|int, mixed> $data) : ProjectTeamMemberAddedStatistics
Parameters
- $projectId : int
- $data : array<string|int, mixed>
Tags
Return values
ProjectTeamMemberAddedStatisticsdelete()
Delete User
public
delete(int $userId) : mixed
Parameters
- $userId : int
Tags
deleteMemberFromProject()
Delete Member From Project
public
deleteMemberFromProject(int $projectId, int $memberId) : void
Parameters
- $projectId : int
- $memberId : int
Tags
get()
Get User Info
public
get(int $userId) : User|null
Parameters
- $userId : int
Tags
Return values
User|nullgetAuthenticatedUser()
Get Authenticated User
public
getAuthenticatedUser() : User|null
Tags
Return values
User|nullgetProjectMemberPermissions()
Get Project Member Permissions
public
getProjectMemberPermissions(int $projectId, int $memberId) : ProjectTeamMemberResource
Parameters
- $projectId : int
- $memberId : int
Tags
Return values
ProjectTeamMemberResourceinvite()
Invite User
public
invite(array<string|int, mixed> $data) : User
Parameters
- $data : array<string|int, mixed>
Tags
Return values
Userlist()
List Users
public
list([array<string|int, mixed> $params = [] ]) : ModelCollection
Parameters
- $params : array<string|int, mixed> = []
Tags
Return values
ModelCollectionlistProjectMembers()
List Project Members
public
listProjectMembers(int $projectId, array<string|int, mixed> $data) : ModelCollection
Parameters
- $projectId : int
- $data : array<string|int, mixed>
Tags
Return values
ModelCollectionreplaceProjectMemberPermissions()
Replace Project Member Permissions
public
replaceProjectMemberPermissions(int $projectId, int $memberId, array<string|int, mixed> $data) : ProjectTeamMemberResource
Parameters
- $projectId : int
- $memberId : int
- $data : array<string|int, mixed>
Tags
Return values
ProjectTeamMemberResourceupdate()
Update User
public
update(User $user) : User
Parameters
- $user : User