Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

RevokeAccess action not working

$
0
0

Hello,

I am developing a dashboard (via javascript) to allow users to grant or revoke access of records to teams. I have had no issue with the GrantAccess action, but I receive an error code:400 when I send a request to RevokeAccess. 

// GrantAccess action parameters - working 

        {
            "Target": {
                "new_employeeid" : employeeid,
                "@odata.type" : "Microsoft.Dynamics.CRM.new_employee"
            },

            "PrincipalAccess": {
                "Principal" : {
                    "teamid" : teamid,
                    "@odata.type" : "Microsoft.Dynamics.CRM.team"
                },
                "AccessMask" : "ReadAccess"
            }
        }

// RevokeAccess action parameters - error

        {
            "Target": {
                "new_employeeid" : employeeid,
                "@odata.type" : "Microsoft.Dynamics.CRM.new_employee"
            },

            "Revokee": {
                "teamid": teamid,
                "@odata.type": "Microsoft.Dynamics.CRM.team"
            }
        }
Your assistance would be greatly appreciated.
Thank you,
Scott

Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>