Identity Provider User Grant using script

Can we add a user in the Identity Provider whose type is OpenID Connect 1.0 using script or external API