#3792 general user can not add pkg to koji : [ERROR] koji: ActionNotAllowed: policy violation (package_list): only admin/tag can do this via default policy
Closed: Fixed by zhiqifeiyang. Opened by zhiqifeiyang.

I has created an user lyq to manage koji job
Use kojiadmin,already added permissions to this user

su - lyq

$ koji add-pkg --owner=lyq tag-dist-centos6 hello
The following go problem occurs


[lyq@localhost ~]$ koji moshimoshi
yo, lyq!

You are using the hub at https://12.132.12.17/kojihub
Authenticated via client certificate /home/lyq/.koji/client.crt

[lyq@localhost ~]$ koji add-pkg --owner=lyq tag-dist-centos6 hello
Adding 1 packages to tag tag-dist-centos6
2023-04-21 11:54:11,390 [ERROR] koji: ActionNotAllowed: policy violation (package_list): only admin/tag can do this via default policy


Wondering why this is happening? is it usually something I'm missing?


Not sure what is the goal:
1) lyq user should be admin. kojiadmin needs to run "koji grant-permission admin lyq"
2) default package policy should be different, then update it according to this and it depends on which rules do you want to have in your environment.

Metadata Update from @tkopecek:
- Custom field Size adjusted to None

resolved it by step 1, thanks so much ~

resolved it by step 1, thanks so much ~

Metadata Update from @zhiqifeiyang:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/3792

Please continue any further discussion there.

Metadata