Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Historical assignements #53


User avatar
0
lemestrez created

Hi Hilkan,

what do you think about historical assignements for permissions ans roles, to recap the assigned rights/roles to any timestamp?

AbpUserRole

Id UserId RoleId ValidFrom ValidTo (Nullable => To check if it is valid)

And the same for:

User->Permission Role->Permission

Greetings

lemestrez


3 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    What is it's purpose? If it's purpose is to know if a role WAS assigned to a user in a time range, what if we assign, unassign and assign again? In that case, we loose the history. Is'nt it better to write some audit log for each change (module-zero makes it already)? We may make UserRole soft-delete, so we can also keep old records for history. But, I think this is not needed. audit-logs show who assigned/unassigned a user to/from a role.

  • User Avatar
    0
    lemestrez created

    Hi,

    the audit log should fit the function I need. I searched for it, and i saw, the the function is realized on the application level and it logs the dto data. What happend with application calls which i want to log but not all data fields (e.g. the call of change password, but not the password field).

    Do have an documentation for it?

  • User Avatar
    0
    hikalkan created
    Support Team

    See docs: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Audit-Logging">http://www.aspnetboilerplate.com/Pages/ ... it-Logging</a>