Access user email for script environment variables (Vanta integration)

Hi team,

First off, congrats on the recent progress, Swif has become much more stable and feature-rich over the past few months.

I'm currently trying to install the Vanta agent through Swif and enable automatic registration with their device monitor.

I'm using this script:
https://github.com/VantaInc/vanta-agent-scripts/blob/main/install-macos.sh

The issue is that the script requires the VANTA_OWNER_EMAIL environment variable in order to register the device/user correctly.

Question:
Is there a way within Swif to access the email of the user associated with the host executing the command and pass it as an environment variable?

Alternatives:
If that’s not possible, are there recommended patterns or workarounds to achieve automatic user registration (for example via Swif agent APIs, metadata, or post-install hooks)?

Any guidance would be really appreciated.

Thanks!

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board
💡

Feature Request

Date

3 days ago

Author

Fernando Godino

Subscribe to post

Get notified by email when there are changes.