Description
Helper method to fetch a role based on its id using the database tree or database id.
Usage
getDatabaseRole(database, roleId)
Arguments
Argument | Description |
---|---|
database |
database tree using getDatabaseTree or the databaseId |
roleId |
the id of the role. |
Examples
# Get the reporting partner role
dbTree <- getDatabaseTree(databaseId = "ck3pqrp9a1z") # fetch the database tree
role <- getDatabaseRole(dbTree, roleId = "rp") # extract the reporting partner role