I have found documentation for OBIEE 11g at https://docs.oracle.com/middleware/11119/biee/BIESC/authentication.htm#BABGJJDC
which states:
Presentation Services privileges can be assigned to a new application role programmatically using SecurityService Service. For more information, see "SecurityService Service" in Oracle Fusion Middleware Integrator's Guide for Oracle Business Intelligence Enterprise Edition
The link SecurityService Service does not reference assigning privileges programmatically to application roles. What documentation it does provide is incomplete and does not provide any "how to" for what it does include.
Two questions:
1. Is there any complete, usable documentation, with examples, that shows how to assign privileges to roles programmatically?
2. Does that documentation exist for OBIEE 12c?