Add attributes on user role mappings

Is it possible to add attributes on role mappings? I would like something like ‘valid from’ and ‘valid to’ for some roles and these to be specifically per user. For example: I want the user ‘john.doe’ to have the role ‘admin’ but only from a specific date to a specific date.