How to automate granting permissions for Customers in a Company

I am using the Shopify GraphQL Admin API, and I am able to create a company, create customers and assign them to this company. However, I need to assign roles and I need a CompanyContactRole, and I have no idea how to do it? Can you help me with that?

The main idea is to avoid granting ordering permissions to users through the Admin Console but just programmatically.