Unique identifier for user in Jira Data Center

We are attempting to sync data from Jira Data Center. An issue has a creator, and from the cloud we would use the accountId as the unique identifier for that user, however Data Center doesn’t seem to have accountId but I did notice key. Will the key suffice as a unique identifier for a user? If not, what should we be using?