IP Based Access or KeyCloak Integration

We are looking to restrict our user access based on the IP they are coming from, or SAML groups that are passed by KeyCloak to Teamwork Cloud. Are either of these things possible?