# Permissions Click Error on Repository (Cannot assign Permissions)

**URL:** <https://community.cloudogu.com/t/permissions-click-error-on-repository-cannot-assign-permissions/1241>\
**Category:** SCM-Manager Bug Reports\
**Created:** [September 28, 2023, 6:54am UTC](https://community.cloudogu.com/t/permissions-click-error-on-repository-cannot-assign-permissions/1241 "2023-09-28T06:54:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sshende](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/sshende/32/1269_2.png) [@sshende](https://community.cloudogu.com/u/sshende)\
**Post date:** [September 28, 2023, 6:54am UTC](https://community.cloudogu.com/t/permissions-click-error-on-repository-cannot-assign-permissions/1241/1 "2023-09-28T06:54:04Z")

</div>

One issue we have found on one of the repositories we are getting below error when clicked on Permissions. I don’t know why it is happening to this repository, other repositories work fine. Are you aware about this issue. how to fix it.

SCM Manager version we use is 2.38.

Here is the error screenshot.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/cloudogu2/original/2X/f/fb92964a0137f3cd0c47edd2ffde37b48b5d61e7.jpeg)

---

<div class="post-metadata">

**Author:** ![pfeuffer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/pfeuffer/32/72_2.png) [@pfeuffer](https://community.cloudogu.com/u/pfeuffer)\
**Post date:** [October 12, 2023, 8:22am UTC](https://community.cloudogu.com/t/permissions-click-error-on-repository-cannot-assign-permissions/1241/2 "2023-10-12T08:22:35Z")

</div>

Hi @sshende ,

if I’m not mistaken, we had an issue with flaky permissions from 1.x that broke the permissions in 2.x. Probably the best way would be to fix this directly in the store files.

To do so you first have to find the directory, where this repository is kept. Take a look at the `repositories` folder. There you will find directories for each of your repositories. You have to find the one for the repository with the error. You can check this by taking a look in the `metadata.xml` files. Here you will find the namespace and the name of the repositories. Once you found the correct `metadata.xml` file, please check the `<permission>` entries. Each of these entries has to have one `groupPermission` (either `true` or `false`), one `name` (the name of the user or the group) and either one `role` (with values `OWNER`, `READ`, or `WRITE`), or multiple `verb` entries.

So a valid `metadata.xml` file should something like this:

```xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<repositories>
    <properties/>
    <id>BBTsSTRcx1</id>
    <namespace>hg</namespace>
    <name>FixedAssets</name>
    <type>hg</type>
    <description></description>
    <contact></contact>
    <creationDate>1697098759990</creationDate>
    <lastModified>1697098784896</lastModified>
    <permission>
        <groupPermission>false</groupPermission>
        <name>john</name>
        <verb>read</verb>
        <verb>modify</verb>
        <verb>delete</verb>
        <verb>pull</verb>
    </permission>
    <permission>
        <groupPermission>false</groupPermission>
        <name>scmadmin</name>
        <role>OWNER</role>
    </permission>
    <archived>false</archived>
</repositories>

```

Hope this helps. If you cannot find any errors in your `metadata.xml` file, then we’ll have to take a deeper look.

Regards  
René
