Hi M Jones,
Yes, this is possible. GeoIP data should be inserted before rule matching, so you can do something like:
```
<rule id="100202" level="10">
<if_group>microsoft365</if_group>
<field name="data.office365.Operation">UserLoggedIn|UserLoginFailed</field>
<field name="data.geoip.country_name" negate="yes">United Kingdom</field>
<field name="data.geoip.country_name">\.+</field>
<description>M365 login from outside UK: $(data.office365.UserId) from $(data.geoip.country_name)
($(data.geoip.city_name))</description>
</rule>
```
The `negate` part would match on logins outside UK, and the `\.+` field would make sure that the rule only matches when the event contains a country_name.
Are you not seeing the geoip data when creating rules?