@Ainul Jasni , Thanks for posting in Q&A. For your error message, it seems there are permission issue when assign configuration profile to one group.
Based on my experience, it can be that the role assignment to you didn't include the group under Scope groups. You can check and add the test device group under your role assignment to see if it works.
https://learn.microsoft.com/en-us/mem/intune/fundamentals/role-based-access-control
Hope it can help.
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.