I thought I could use this function to get the list of users that can impersonate the current user:
var currentUser = Dynamicweb.Security.UserManagement.User.GetCurrentExtranetUser(); var users = currentUser.GetUsersThatCanSetMeAsSecondary();
This does not return any users, even if I have added users to the list through admin.