Thank you for choosing Okta.
Please ensure you check our documentation at http://developer.okta.com/docs/api/resources/roles.html in regards to your specific inquiry. Should you not be able to utilize our resources to generate the desire objective please feel free to suggest this as a feature enhancement.
You can suggest this on the Okta Community by using the 'Suggest a feature' option at the bottom of the Okta admin console. Features suggested in our community are reviewed and can be voted and commented on by other members of the community, therefore making it much easier for the engineering team to understand the priorities that you have for feature requests. From there, the PM team will review the top 30 most voted upon ideas each month and provide feedback/roadmap status on these via the forum.