How to compare Datatables with values

@smritijoshi
welcome to the forum

It can be handled as a full join case

Join cols: User (optional additional Join Cols)
Join Type; Full Join

Then based on the Join Cols we can detect User Addtions /Removals (col is null)
The roles we can split row(“Role”).Split(","c).Select(Function (x) x.Trim).ToArray
The split Arrays we can anaylse with the Intersect and Except Operators

Let us know your further open questions once YOu have started to explore a Full Join with the Join DataTAble Activity

1 Like