Hi, I want to read like the name of the user which runs this operation. I want to implement like:
leaf user {
must “current() = $USER” {
error-message “”;
}
}
Here, $USER is the run time user who has logged in. I have tried like $(user), user() but none works.
Is there a possible way to implement this in yang model?