cancel
Showing results for 
Search instead for 
Did you mean: 

AutenticationUtil.runAs with group id

fmontinaro
Champ in-the-making
Champ in-the-making
Hello,

I used the AutenticationUtil.runAs(RunAsWork<R> runAsWork, String uid) method and I passed as uid argument a GROUP id and not a user id.
it seems to work. It's a correct behaviour or is it a bug?

Thanks
Federico
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Its surprising, and strange but probably not a bug.   Groups and users are both "authorities".

openpj
Elite Collaborator
Elite Collaborator
It seems that groups can run jobs with the AuthenticationUtil but probably groups can't write or create contents…. or at least I hope   Smiley Indifferent