Can I create a plugin that checks users and grant access to group based on activity?

So it is not possible for now?