Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Nobody is NOT more restrictive then someone

Alba Quarto February 13, 2024

I have a project with branch restrictions. 

In the branch restriction at project level on branch develop some people have write access. 

Screenshot from 2024-02-13 15-01-10.png

In a repo inside the project I need to remove the write access for Everyone. So I try to set in web UI "Only specific people or groups have write access" and do not set any person.

Screenshot from 2024-02-13 14-59-02.png

If I see the api call I can see this payload:

{
"values": [
{
"branch_type": "development",
"branch_match_kind": "branching_model",
"kind": "push",
"users": [],
"groups": []
},
{
"branch_type": "development",
"branch_match_kind": "branching_model",
"kind": "restrict_merges",
"users": [],
"groups": [
{
"slug": "devreviewers"
}
]
},
{
"branch_type": "development",
"branch_match_kind": "branching_model",
"kind": "delete"
},
{
"branch_type": "development",
"branch_match_kind": "branching_model",
"kind": "force"
}
]
}

The restriction of ind "push" is corected sended with void groups and users.

 

This setting don't have effect. Devreviewers still have write access to branch.

I tried also with a void group.

Screenshot from 2024-02-13 15-10-16.png

  Inside Nobody there aren't any users.

The result is the same. Devusers can still push on develop branch.

Now I have to use an alternative solution. The unique I can image is move the repo in another project. But I cannot understend how Nobody could be less restrictive then someone. 

1 comment

Saxea _Flowie_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2024

Hi @Alba Quarto

I think this is documented here. It's overlapping the inherited permission, so it's applying both permissions: Devreviewers + NoBody or Devreviewers + [Nothing] = Devreviewers. It doesn't override or negate, it combines it. 

Like # people like this
Alba Quarto March 11, 2024

Yes I understood because nobody is interpreted as a no choise.

I'd like have a method to remove all access permission for a specific repo also with a specific flag.

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events