@Anamika Thanks for posting in our Q&A.
For this scenario, the device is a shared device. It is needed to purchase intune device license for this device.
For device license limitations, please refer to the following article:
https://learn.microsoft.com/en-us/mem/intune/fundamentals/licenses#device-only-license-limitations
Hope it will give you some ideas.
If the answer is the right solution, 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.