Do you mean one Mac but multiple user accounts (macOS accounts)?
Please refer to 'How to make macOS apps available to a single user instead of all users'. You may specify "For this user only" during your original installation.
Please Note: Since the web site is not hosted by Microsoft, the link may changed without notice. Microsoft does not guarantee the accuracy of this information.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.