0
murat.yuceer created
Hi,
We need to disable Roles without remove from user. This can be done temporarily, then activated.
How can we achieve this?
4 Answer(s)
-
0
Hi @murat.yuceer
What will be the difference from remving a role from user and adding the role back ? Do you want to handle this automatically ? For example disalbe a role from user until a date ?
-
0
Yes, actually TSE want it from us. They dont want to lost role information from user. For a certain period of time they want to disable
-
0
Hi @murat.yuceer
Sorry for the late reply. In that case, you can create a new table to keep role disable dates (RoleId, StartDate, EndDate) and exclude roles by overriding UserRoleStore's GetRolesAsync method.
-
0
Thank you