Migrate logins tagged to specific databases users
I have a procedure called sp_SrvPermissions that has a @DBName parameter specifically for that.  You can do something like this:

EXEC sp_SrvPermissions @DBName = '&lt;DBName&gt;', @Output = 'CreateOnly'


This will give you not just the script to create the LOGIN associated with just that database but any server level roles they are a member of and any server specific permissions they might have as well.