Skip to main content

Good day K2 Experts,

 

I have a sceneriao where on my activity, the server mail event "To Email" is set to K2.Activit​yInstanceD​estination​.User.Emai​l is set to " Destination User". Now that I removed a user from the destination queue which is linked to an AD group. But the user still receives task notification email as well as the task is allocated to the user that was removed from the AD group.

 

Please kindly advise, what might be the reason. Thanks in advance.

 

Kind Regards

Kalyan

Hi,

 

I think you need to refresh the User Manager Cash using:

 

UPDATE EK2].]Identity].]Identity]
SET TExpireOn] = GETDATE()
, Resolved] = 0
, ContainersResolved] = 0
, ContainersExpireOn] = GETDATE()
, MembersResolved] = 0
, MembersExpireOn] = GETDATE()

GO

 


Good day,

 

Thanks for your response. I ran your script, but still sending out emails to the removed user.


Hi,

 

did you execute the previous Update statement on the group that you're facing troubles with?

 

UPDATE EK2].]Identity].]Identity] 
SET TExpireOn] = GETDATE()
,>Resolved] = 0
,>ContainersResolved] = 0
,>ContainersExpireOn] = GETDATE()
,>MembersResolved] = 0
,>MembersExpireOn] = GETDATE()
Where Name=”Your Group”
For example Where Name=”DenallixSales”

Yes I did sir.


When you run the GetGroupUsers method, is that user returned in the results?


Good day,

 

The user was not returned when I try to get users from AD group. But when the task is allocated to the destination queue the user that wa removed from the AD group also receives the server email as well as task allocated. I am not sure where else to check.

 

Kind Regards

Kalyan


Reply