Currently the teamsIdentifier, and teams arrays are not available in the user context in Self Service action dynamic permissions.
For example, if you want to use "{{.user.teamsIdentifier}}" or "{{.user.teams[].name}}" as a value in a dynamic permissions policy, you can't do that as those values aren't present on the .user object in the dynamic permissions/self service action context.