GetEntAccessByUser Method
- Last UpdatedNov 06, 2025
- 2 minute read
The GetEntAccessByUser() method retrieves one or more group/entity link records from the Grp_Ent_Link table, as specified by the filter parameters. Passing no filter parameters will retrieve all group entity link records from the table.
'Usage
Dim userId As String
Dim value As DataSet
value = GrpEntLink.GetEntAccessByUser(userId)
Parameters
- userId
- Required. Holds the ID of the user for whom the entity access data is to be retrieved.
Return Value
Returns a DataSet that contains records for all the group/entity link records that satisfy the specified filters. The returned records include columns from the Ent and Grp_Ent_Link tables. If no matching group/entity link records are found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
| ColumnName | Description |
|---|---|
| ent_id | An integer that is the ID of the entity. |
| ent_name | A string that is the description of the entity. From the Ent table. |
| can_sched_jobs | A Boolean that is a flag that indicates whether jobs can be scheduled to this entity. From the Ent table. |
| can_run_jobs | A Boolean that is a flag that indicates whether jobs can run on this entity. From the Ent table. |
| can_capture_util | A Boolean that is a flag that indicates whether utilization data can be captured on this entity. From the Ent table. |
| can_capture_labor | A Boolean that is a flag that indicates whether labor data can be captured on this entity. From the Ent table. |
| can_do_dnc | Not used. Will always return False. |
| can_store | A Boolean that is a flag that indicates if this entity is a storage location, such as a warehouse. From the Ent table. |
| can_log_data | A Boolean that is a flag that indicates whether this entity supports data logging. From the Ent table. |
| parent_ent_id | An integer that is the ID of the parent entity from which this entity will inherit entity associations that can only be inherited from one parent entity, such as a shift schedule. For a top-level entity, the value will be null. |
| access | A Boolean that is a flag that indicates whether any of the user groups to which the user belongs can log onto the entity. |