We've user with 3 groups assigned:
- GA - through IT Shop (indirect)
- GB - through IT Shop (indirect)
- GC - through Manager (direct)
All above resides in UNSAccountBInUNSGroupB.
I'm trying to delete above with script:
Public Function TSB_UNSAccountBInUNSGroupB_Delete(ByVal UID_UNSAccountB As String, ByVal UID_UNSGroupB As String) As Boolean Dim UNSAccountBInUNSGroupB As IEntity = Nothing Dim f As ISqlFormatter = Connection.SqlFormatter If Session.Source.TryGet( Query.From("UNSAccountBInUNSGroupB") _ .Where(f.Comparison("UID_UNSAccountB", UID_UNSAccountB, ValType.String, CompareOperator.Equal, FormatterOptions.NonUnicodeLiterals)) _ .Where(f.Comparison("UID_UNSGroupB", UID_UNSGroupB, ValType.String, CompareOperator.Equal, FormatterOptions.NonUnicodeLiterals)) _ .SelectNonLobs, UNSAccountBInUNSGroupB ) Dim deepDelete = UNSAccountBInUNSGroupB.DeepDelete(Session) deepDelete.Execute(Session) Return True End If Return False End Function
but I'm able to delete only GC assignement? How to delete two others?