简体   繁体   English

使用Azure 2020 as Git时如何设置asp.net core中每个项目的权限

[英]how to set permission on each project in asp.net core when use Azure 2020 as Git

we are using multi layer solution in asp.net core.我们在 asp.net 内核中使用多层解决方案。 it means in one solution we have some projects and we use Azure dev ops 2020 as local Git repository, the question is how can set permission for each project?这意味着在一个解决方案中我们有一些项目,我们使用 Azure dev ops 2020 作为本地 Git 存储库,问题是如何为每个项目设置权限? I want to grant pull and push request to testUser1 for project A but at same time I don't want this user have access to Project B.我想向项目 A 的 testUser1 授予拉取和推送请求,但同时我不希望该用户有权访问项目 B。

how to set permission on each project in asp.net core when use Azure 2020 as Git使用Azure 2020 as Git时如何设置asp.net core中每个项目的权限

I am afraid there is no such permission setting on each project in asp.net core when use Azure 2020 as git.恐怕在使用Azure 2020作为git时,asp.net核心中的每个项目都没有这样的权限设置。

According to the document Set Git repository permissions :根据文档设置 Git 存储库权限

You grant or restrict access to repositories to lock down who can contribute to your source code and manage other features.您授予或限制对存储库的访问权限,以锁定可以为您的源代码做出贡献并管理其他功能的人员。 You can set permissions across all Git repositories by making changes to the top-level Git repositories entry.您可以通过更改顶级 Git 存储库条目来设置所有 Git 存储库的权限。 Individual repositories inherit permissions from the top-level Git Repositories entry .各个存储库从顶级 Git 存储库条目继承权限

We could only set the permission on each repository instead of the each project.我们只能在每个存储库而不是每个项目上设置权限。

Besides, since project A and project B are in the same asp.net core solution, there should be a certain connection between them.另外,由于项目A和项目B在同一个asp.net核心方案中,两者之间应该有一定的联系。 Users can only see one of them instead of all the codes.用户只能看到其中一个而不是所有代码。 It will be difficult to understand that the code is only based on the code of one of the projects.很难理解代码仅基于其中一个项目的代码。 If they are independent of each other, you may consider assigning the two projects in different repo to manage separately.如果相互独立,可以考虑将这两个项目分配到不同的repo中,分别管理。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Azure 数据库和 Active Directory 密码身份验证的 ASP.NET Core 中使用 Hangfire - How to use Hangfire in ASP.NET Core with Azure database and Active Directory Password authentication 如果项目使用 Azure AD,当前用户 Id 是否可以在 ASP.NET Core 5 MVC controller 中访问? - Is the current user Id accessible in an ASP.NET Core 5 MVC controller if the project uses Azure AD? ASP.NET 核心应用程序在尝试发布到 Azure 后不使用 appsettings.json 中的设置 - ASP.NET Core app does not use setting from the appsettings.json, after trying to publish to Azure 从ASP.NET Core访问Azure App Service ConnectionString - Access Azure App Service ConnectionString from ASP.NET Core 如何使用 Azure Active Directory 在 ASP.NET Core 应用程序中获取经过身份验证的用户的名称 - How to get Name of Authenticated user in ASP.NET Core application using Azure Active Directory 如何读取Service Fabric Azure App Configuration ASP.NET Core Stateless Web API? - How to read the Azure App Configuration in Service Fabric ASP.NET Core Stateless Web API? Asp.Net Core 5.0:如何删除与 Azure 数据库 SQL 的连接? - Asp.Net Core 5.0: How to delete the connexion with an Azure Database SQL? .NET 5 ASP.NET 核心应用程序未在 Azure 中启动 - .NET 5 ASP.NET Core App not starting in Azure ASP.net 核心 docker https on Azure 应用服务容器 - ASP.net core docker https on Azure App Service Containers 如何使用 C# ASP.NET Core 应用程序通过 Elastic Beanstalk 设置对特定文件夹的权限? - How can I set permissions to a specific folder with Elastic Beanstalk using a C# ASP.NET Core app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM