Dear @Ashiya Praveen ,
Thank you for your post in our forum.
Whether you want to access site by ‘ClientId’ and ‘ClientSecret’?
You could do this by following steps in this official document:
Granting access using SharePoint App-Only
Hope that helps you a little.
Should you have any questions or concerns, please do feel free to contact me.
Yours sincerely,
Renjie Sun
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.