Capabilities/moodle/user:viewlastip
From MoodleDocs
New feature
in Moodle 2.7!
- This capability allows a user to view the last IP field in user profiles.
- It is set to 'Allow' for the default role of manager only and is not set for other roles.