MicrosoftDocs / feedback

📢 docs.microsoft.com site feedback
https://learn.microsoft.com
Creative Commons Attribution 4.0 International
239 stars 160 forks source link

GetUserEffectivePermissions Rest API giving wrong output. #3184

Open dvd95 opened 4 years ago

dvd95 commented 4 years ago

Describe the bug I am trying to fetch the permission of users on items(files) in team using the rest endpoint /getUserEffectivePermissions, but I am getting permission of the user even after the user is removed from the Team.

To Reproduce Steps to reproduce the behavior:

  1. Create a team "TeamA", add user "User1" to the team as a member.
  2. Fetch the rights of "User1" on "TeamA" using the endpoint 'https://{site_url}/_api/web/getusereffectivepermissions('')
  3. Output shows no rights
  4. Login as "User1" and Access "TeamA"
  5. Fetch rights again by Step2, Output shows rights
  6. Remove the "User1" from "TeamA"
  7. Fetch the rights again by Step2, Output still shows rights

Expected behavior "User1" should get rights on the "TeamA" in Step 3. "User1" should not get rights on "TeamA" in Step7

welcome[bot] commented 4 years ago

Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).

rootsmusic commented 3 years ago

@dvd95 Where's the doc?