Developer forum

Forum » Feature requests » User management

User management

Natan Ólafsson
Natan Ólafsson
Reply

Hey

I am creating a "user management" page, for users that have permission to create/disable their sub-users. I am using impersonation to connect a primary user to his sub-users. But the method "User.GetUsersICanSetAsSecondary()" will not contain disabled users.

Would be handy to be able to call "User.GetUsersICanSetAsSecondary()" with an overload that accepts boolean "ShowDisabledUsers". 
Or is there is a better way of handling this situation I am not aware of? 

Regards
Natan 


Replies

 
Nicolai Pedersen
Reply

Hi Natan

I think short term using [AccessUserSecondaryRelation] table directly is your best option. It has userids and groupids. And I guess joining the userids to AccessUser table, you have what you need.

BR Nicolai