Minecraft wiki entry for achievement, associated text: name
Specifies which achievement to modify. Must be one of the following:
achievement.achievement_name, where achievement_name is a valid achievement identifier.
* represents all achievements.
player (optional)
Must be a player name or a target selector. If not specified, defaults to the command's executor. Not optional in command blocks.