GetLineAccByGroups Method
- Last UpdatedNov 06, 2025
- 2 minute read
The GetLineAccByGroups() method accepts a list of SIDs that represent the OS groups to which the user belongs and optionally a line ID. It looks up the SIDs in the Grp_Name table and returns the maximum access in the Grp_Line_Link table for the groups that match the supplied SIDs. If none of the SIDs match a group, then 0 is returned in the access column. If a line_id is supplied, then a single row for that line is returned. Otherwise, a row for each line is returned.
'Declaration
Public Shared Function GetLineAccByGroups( _
ByVal securityIds() As String, _
ByVal lineId As Nullable(Of Integer) _
) As DataSet
'Usage
Dim securityIds() As String
Dim lineId As Nullable(Of Integer)
Dim value As DataSet
value = GrpLineLink.GetLineAccByGroups(securityIds, lineId)
public static DataSet GetLineAccByGroups(
string[] securityIds,
Nullable<int> lineId
)
Parameters
- securityIds
- Required. Holds the list of SIDs.
- lineId
- Optional. Holds the ID of the Line.
Return Value
Returns a DataSet that contains the list of lines related to OS groups matching the supplied SIDs. The returned records include columns from the line and grp_line_link tables. If no matching data is found, an empty DataSet is returned.
The columns of the returned DataSet are described below.
|
ColumnName |
Description |
|---|---|
|
line_id |
An integer that is the ID of the line. |
|
line_name |
A string that is the name of the line from the Line table. |
|
access |
An integer that is a flag that specifies whether the user may access the line. |