Hi everyone, just wondering why the string is not being typecasted to both user and group and being checked which one is valid since the type is userOrGroup?
Discussion posts and replies are publicly visible
Hello deepakrana77
What is your requirement? you are expecting either a group id or an user name as an input?
The group has a number. You can extract that number using tointeger() function and then use it to cast it to the group. But like Kondru said, lets get clear with the requirement first.