Openid with groups

has anyone successfully setup openid with azure with groups based authentication for example group1 has some users group2 has admin users?

thanks