See this technote https://developer.apple.com/documentation/technotes/tn3125-inside-code-signing-provisioning-profiles#Entitlements-on-macOS
"In contrast, *restricted entitlements* must be authorized by a provisioning profile. This is an important security feature on macOS. For example, the fact that the
keychain-access-groups` entitlement must be authorized by a profile means that other developers can’t impersonate your app in order to steal its keychain items."
So, you need a provisioning profile, and you won't get one if you don't have a paid developer account. Bummer.