only sync active and sync enabled groups
This commit is contained in:
parent
b5559955a3
commit
3bd9c04b9c
@ -102,7 +102,7 @@ Namespace SyncUsers
|
|||||||
|
|
||||||
Private Function GetGroupId(GroupName As String) As Integer Implements ISyncUsers.GetGroupId
|
Private Function GetGroupId(GroupName As String) As Integer Implements ISyncUsers.GetGroupId
|
||||||
Try
|
Try
|
||||||
Dim oSQL As String = $"SELECT GUID FROM TBDD_GROUPS WHERE NAME = '{GroupName}'"
|
Dim oSQL As String = $"SELECT GUID FROM TBDD_GROUPS WHERE NAME = '{GroupName}' AND AD_SYNC = 1 AND ACTIVE = 1"
|
||||||
Dim oGroupId = _mssql.NewExecuteScalar(oSQL)
|
Dim oGroupId = _mssql.NewExecuteScalar(oSQL)
|
||||||
|
|
||||||
If IsDBNull(oGroupId) OrElse oGroupId = 0 Then
|
If IsDBNull(oGroupId) OrElse oGroupId = 0 Then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user