i wonder if i can use user ID to get user Team and permision. any one with idea
TL;DR
You can use the listMemberships() endpoint with the user ID to retrieve the teams a user is a part of. Each membership object will provide the team ID and permissions. Check out the link for more details on how to implement this.