Hi there @dotaolaoqua!
This is absolutely possible using custom claims and Actions The following resources should be a great place to start!
Hope this helps!