This sample demonstrates how to manage user access using the Google Cloud IAM APIs in C#.
To learn more, see Granting, Changing, and Revoking Access to Resources.
This sample requires .NET Core 2.0 or later. That means using Visual Studio 2017, or the command line.
-
Follow the instructions in the root README.
-
Enable APIs for your project. Click here to visit Cloud Platform Console and enable the Google Cloud IAM API.
-
Add a reference to the project in your application.
-
Call
GetIamPolicy()andSetIamPolicy()to get and set policy for a resource.
- See CONTRIBUTING.md
- See LICENSE