Set Visibility After Create #64
-
I have a question that expands upon the request admin-api functionality from this issue: I'm attempting to automate:
So is there any way I can perform step 2 through the admin api, or regular api? I tried looking at the calls that the UI makes when I set a role in the page (I'm using roles through Azure AD for my authorization), but it appears to be a form post on I also tried looking at the DSL visibility, but I don't think I want this. When developers are working in the respository and using the structurizr-lite, I don't want the dsl to have visibility = private. On the localhost it should be public. Only when I deploy to my onpremises as part of the CI/CD pipeline for the pull request branch, I would want it to create the workspace (if it doesn't exist), make it a private by default, and then use the structurizr-cli to push the workspace.json Thank you for your time |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I've noticed that on this page: https://structurizr.com/help/workspace-sharing it mentions private is the default for new workspaces. I assume that's true for cloud service, but not the on-premises? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
For the on-premises installation, "username" can be a username, e-mail address, role name, or regex (https://docs.structurizr.com/onpremises/authorisation#configuring-users-and-roles). For the cloud service it's an e-mail address only.