PaloAltoNetworks / pan-os-python

The PAN-OS SDK for Python is a package to help interact with Palo Alto Networks devices (including physical and virtualized Next-generation Firewalls and Panorama). The pan-os-python SDK is object oriented and mimics the traditional interaction with the device via the GUI or CLI/API.
https://pan-os-python.readthedocs.io
ISC License
340 stars 168 forks source link

User ID logout without specifying username #497

Closed andrewjharms closed 1 year ago

andrewjharms commented 1 year ago

Is your feature request related to a problem?

My user ID mapping code runs in an AWS Lambda function and doesn't know the exact username for a given IP address when a logout event occurs. I need to be able to remove a user ID mapping from the firewall by only specifying the IP address. I don't see a method to return all current user ID mappings from the firewall so I could include the username in my UserId.logout() call.

Describe the solution you'd like

I would like to be able to use UserId.logout() by only specifying an IP address and omitting the username.

Describe alternatives you've considered

n/a

Additional context

n/a

welcome-to-palo-alto-networks[bot] commented 1 year ago

:tada: Thanks for opening your first issue here! Welcome to the community!

andrewjharms commented 1 year ago

Upon further testing, sending an empty string for the username achieves the desired result so I'm closing this issue.