Dataform - getting os username

101 Views Asked by At

How would I get the name of the user currently logged into the system using Dataform? I tried this:

const os = require("os"); 
console.log(os.userInfo().username); 

but after typing "dataform compile" in the terminal I get this enter image description here

Do you have any ideas? Thank you in advance

1

There are 1 best solutions below

1
On

if you want to get the session details on user using dataform, one option is you can use Cloud logging as mentioned here https://cloud.google.com/dataform/docs/audit-logging#viewing_logs

hope this helps