Device access via M365 group

Is there a way to bind the login in Mikrotik devices to an M365 network security group (the online version without local servers)?
Similar to how other manufacturers solved it via LDAP?