How to create default roles programmatically in superset - apache-superset

I am new to superset, my requirement is to create a default role like alpha, gamma etc., How to achieve this programmatically in superset.
Thanks

Related

Can I limit a service account's authorization to specific images within GCP container registery?

I'd like to have multiple environments setup of my application, and each environment should only have access to push/pull images from a specific image like eu.gcr.io/project-name/abcxyz.
Is this possible? It seems I can only grant a "global" role of Storage Object Creator- but then this gives the service account access to all the images within the project?
You can't directly achieve this. But, thanks to the Artifact registry (new product in Beta ), you have a workaround to achieve this.
Create a new repository of type Docker
Publish your images (and versions of each image) on this repo
Grant the service account that you want on the repo. -> You don't yet have image level authorization, but, as you can create several repos in the same zone, there is no problem for limiting the right like this.

Create Customized role in GCP

I wish to create a user with customized role in GCP for a Project
Roles were :
user can:
able to ssh all the servers in the project
monitor all the servers in the project
list all snapshots in the project
list all images in the project
User should don't have :
stop/delete the instances
view billing access
launch new instances
create/delete snapshot
create/delete images
create/remove firewall tags
Is it possible ?
If so what are all the permissions needs to be added under customized role
As mentioned by Graham Polley, you can definitely use the custom role to set permission according to your use case. You need to find appropriate permission and set accordingly. You can find this documentation that guides on how to create and manage custom roles. Note that, not all permissions are supported for the custom role. You can find the list of permissions and its associated support level (Supported, Testing, Not Supported) at this link.

WSO2 API Manager (1.10.0) LDAP Roles

I have a LDAP Second store at APIM (1.10.0).
When I create one aplication, two roles is created like this:
- Application/<user>_<Name application>_PRODUCTION
- Application/<user>_<Name application>_SANDBOX
I' d like create it at LDAP automaticaly . How can I do this?
By design this role is created under Application which is an internal role. One of the benefits of creating under application is that this role can be assigned to a user of any domain(primary/secondary) where as if the role was created under a specific domain then the role would not be available for other domain users
regards,shavantha

Create New Service account programmatically

Is there an Google Admin API to create a new service account using the credentials of another service account?
I'm creating a SAAS solution where I'm providing certain services to end users from different domains. Google recommends (not restricts) to use different service account (ESA) for each domain so that their data is entirely segregated.
To achieve this, I need to create a new ESA programmatically whenever a new customer signsup.
I'm able to provide the services to all users (from different domains) using single ESA, but I was not able to find any API that allows me to create a new ESA programmatically. Is it possible?

Manage external custom permissions with WSO2 Identity Server?

I need to add custom permission and role to IS .Use case available in here http://venurakahawala.blogspot.in/search/label/custom%20permissions .How to implement this scenario .
Thanks in advance
In WSO2IS 5.0.0 to achieve this.
Create a service provider which represent your application
https://docs.wso2.com/display/IS500/Adding+a+Service+Provider
Define custom permission for service provider
https://docs.wso2.com/display/IS500/Configuring+Roles+and+Permissions+for+a+Service+Provider
Can create new roles and assign permissions for each roles
https://docs.wso2.com/display/IS500/Configuring+Roles