Cannot change default table preferences for anonymous users #10540

Closed
opened 2025-12-29 21:32:54 +01:00 by adam · 1 comment
Owner

Originally created by @scnlewisk on GitHub (Dec 4, 2024).

Originally assigned to: @bctiemann, @renatoalmeidaoliveira on GitHub.

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.1.7

Python Version

3.10

Steps to Reproduce

Same issue as #13312

Edit configuration.yaml to edit default user preferences table columns for IPAM>IPAddresses

DEFAULT_USER_PREFERENCES = {
'tables': {
'IPAddressTable': {
'columns': ['address', 'status', 'dns_name', 'description', 'cf_Used_for_Egress', ]
},
},
}

image

Note: does not need custom field to cause issue.

Open Netbox as anonymous/unauthenticated user (private browsing), and navigate to IPAM>IP Addresses
The table columns do not match the default user preferences.

Expected Behavior

The IP Address table columns for guests should match what is set in the default user preferences.

Observed Behavior

When logging in as an anonymous/unauthenticated user, the table columns are different than what is set under default user preferences.

image

This is an issue because guests do not have the option to adjust table columns, so they cannot see any non-default table fields without opening each IP address.

Note: for authenticated, if you reset table column preferences, then it will change to the preferences set under the default user preferences.

Originally created by @scnlewisk on GitHub (Dec 4, 2024). Originally assigned to: @bctiemann, @renatoalmeidaoliveira on GitHub. ### Deployment Type Self-hosted ### Triage priority N/A ### NetBox Version v4.1.7 ### Python Version 3.10 ### Steps to Reproduce Same issue as #13312 Edit configuration.yaml to edit default user preferences table columns for IPAM>IPAddresses DEFAULT_USER_PREFERENCES = { 'tables': { 'IPAddressTable': { 'columns': ['address', 'status', 'dns_name', 'description', 'cf_Used_for_Egress', ] }, }, } ![image](https://github.com/user-attachments/assets/17855f45-d1c4-47a5-817e-bc0890eb69b8) Note: does not need custom field to cause issue. Open Netbox as anonymous/unauthenticated user (private browsing), and navigate to IPAM>IP Addresses The table columns do not match the default user preferences. ### Expected Behavior The IP Address table columns for guests should match what is set in the default user preferences. ### Observed Behavior When logging in as an anonymous/unauthenticated user, the table columns are different than what is set under default user preferences. ![image](https://github.com/user-attachments/assets/eaeeb562-02d7-4d39-813e-c228a2646993) This is an issue because guests do not have the option to adjust table columns, so they cannot see any non-default table fields without opening each IP address. Note: for authenticated, if you reset table column preferences, then it will change to the preferences set under the default user preferences.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 21:32:54 +01:00
adam closed this issue 2025-12-29 21:32:54 +01:00
Author
Owner

@scnlewisk commented on GitHub (Dec 4, 2024):

Apologies, forgot one part of steps to reproduce, need to add Exempt View Permissions for IPAM>IP addresses in configuration.yaml
image

@scnlewisk commented on GitHub (Dec 4, 2024): Apologies, forgot one part of steps to reproduce, need to add Exempt View Permissions for IPAM>IP addresses in configuration.yaml ![image](https://github.com/user-attachments/assets/59ee0c19-6445-4ee2-84ff-c180b269706c)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10540