
mlo4o (mlo4o) asked a question.
I'm writing a NodeJS app that uses the `passport-saml` package to get user profiles:
```js
passport.use(
new SamlStrategy({ cert, entryPoint, path }, function authCb(user, done) {
try {
const profile = formatUser(user);
return profile ? done(null, profile) : done('No User!');
} catch (error) {
done(error);
}
})
);
```
I'd very much like to get an Array of user's groups back in the `profile`
I've added the following "Attribute Expression" to the App's configuration page:
```
Name Name Format Value
email Unspecified ${user.email}
firstName Unspecified ${user.firstName}
lastName Unspecified ${user.lastName}
groups Unspecified getFilteredGroups({"user.id"},"group.name",40)
```
However, in `authCb`, the `user` object has no `groups` property.
Have I misconfigured this? Are there more steps that need to be taken?

Hi Benny - thanks for stopping by the Community! I would recommend posting this question in our Okta Developer Forum at https://devforum.okta.com/, or creating a support case to speak to our Developer Support team.
Thanks 🙂