SetUserGroupEntityAccess Method
- Last UpdatedNov 06, 2025
- 1 minute read
The SetUserGroupEntityAccess() method sets or denies access to the specified entity for the specified user group, depending on the state of the access flag.
'Declaration
Public Shared Function SetUserGroupEntityAccess( _
ByVal UserGrpID As Integer, _
ByVal EntID As Integer, _
ByVal Access As Boolean, _
ByVal lastEditAt As Nullable(Of Date) _
) As Date
public static DateTime SetUserGroupEntityAccess(
int UserGrpID,
int EntID,
bool Access,
Nullable<DateTime> lastEditAt
)
Parameters
- UserGrpID
- Required. Holds the ID of the user group to which entity access is being given or removed.
- EntID
- Required. Holds the ID of the entity to which access is being given or removed.
- Access
- Required. Holds the flag that, if set to true, assigns the user group access to the entity. If the flag is set to false, user group access to the entity is removed.
- lastEditAt
- Optional. Holds a DateTime value that can be used to avoid data contention. If it is specified, the value must match that value in the database for the update to succeed.
Return Value
Returns a DateTime with the date and time the user group entity access was updated.