Groups Permissions error #21466
-
NetBox EditionNetBox Community NetBox Versionv4.5.0 Python Version3.12 Steps to Reproduce
Expected BehaviorThe bottom line is, I'll describe what I expect. I add the rights and then specify which sites can be viewed with these rights, add these rights to the group, add the user to the group. I expect that the user will see only these sites (I'll tell you right away, if you specify only one site, everything works) if I specify a list of sites, then none of the user's sites are displayed at all. Observed BehaviorWhat I see at the moment is that rights are being added to the group, permissions are also being added. BUT in the end, the user can't see any sites at all. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You need to add the {
"slug__in": [
"site1",
"site2",
"site3"
]
} |
Beta Was this translation helpful? Give feedback.
-
|
Yes, this combination works. Thank you very much. I just didn't see or didn't find this more precisely in the documentation. If it's in the documentation somewhere, please provide a link to it. |
Beta Was this translation helpful? Give feedback.
You need to add the
__inlookup modifier when comparing to a list of values:{ "slug__in": [ "site1", "site2", "site3" ] }