Permission issues with API tokens for non-superusers? #12858
Replies: 4 comments 7 replies
-
Can you share the API endpoint and how the token and permission are set up for the user? Also, have you tried hitting the endpoint directly using curl or postman? |
Beta Was this translation helpful? Give feedback.
-
I noticed that the group that should be populated with users via LDAP config is not happening now and all groups have zero members. To troubleshoot I tried to enable logger "django_auth_ldap" but then the netbox-docker container does not start due to error |
Beta Was this translation helpful? Give feedback.
-
hmm.. maybe my issue is similar to reported issue #12849 since I also use AD and the users belonging to my group there lost its permissions. I cannot mirror all groups. |
Beta Was this translation helpful? Give feedback.
-
This is the last change to LDAP auth that I am aware of: #10673 It was included in v3.3.6. Not sure what else could cause this. Can you verify that the API works if you disable AUTH_LDAP_FIND_GROUP_PERMS? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I recently upgraded Netbox v3.4.5 to v3.4.10 and after that when using the Netbox Ansible inventory plugin I get permission error on several API calls it does. This happens only when I use an API token on a non-superuser. This user however is allowed all actions on all possible models. This worked before without any issues but now I am forced to use a superuser API token to get it to work.
Also tried this in latest v3.5 and same issue there.
Anyone else see this problem?
Beta Was this translation helpful? Give feedback.
All reactions