public sealed class TroubleshootIamPolicyResponse : IMessage<TroubleshootIamPolicyResponse>, IEquatable<TroubleshootIamPolicyResponse>, IDeepCloneable<TroubleshootIamPolicyResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Policy Troubleshooter v1 API class TroubleshootIamPolicyResponse.
Response for
[TroubleshootIamPolicy][google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy].
public RepeatedField<ExplainedPolicy> ExplainedPolicies { get; }
List of IAM policies that were evaluated to check the principal's
permissions, with annotations to indicate how each policy contributed to
the final result.
The list of policies can include the policy for the resource itself. It can
also include policies that are inherited from higher levels of the resource
hierarchy, including the organization, the folder, and the project.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eTroubleshootIamPolicyResponse\u003c/code\u003e class is the response type for the \u003ccode\u003eTroubleshootIamPolicy\u003c/code\u003e API method within the Policy Troubleshooter v1 API, used to evaluate IAM policies.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities for message handling, equality checks, deep cloning, and buffered message operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers properties like \u003ccode\u003eAccess\u003c/code\u003e (to indicate access status), \u003ccode\u003eErrors\u003c/code\u003e (for general errors in the response), and \u003ccode\u003eExplainedPolicies\u003c/code\u003e (for a list of evaluated IAM policies).\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the API available, ranging from version 1.1.0 up to the latest version 2.5.0, including documentation links to each version of the \u003ccode\u003eTroubleshootIamPolicyResponse\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for creating new instances and cloning from existing \u003ccode\u003eTroubleshootIamPolicyResponse\u003c/code\u003e objects, and it inherits members such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"]]],[],null,["# Policy Troubleshooter v1 API - Class TroubleshootIamPolicyResponse (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/latest/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/2.4.0/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/2.3.0/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/2.2.0/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/2.1.0/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/2.0.0/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/1.2.0/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/1.1.0/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse) \n\n public sealed class TroubleshootIamPolicyResponse : IMessage\u003cTroubleshootIamPolicyResponse\u003e, IEquatable\u003cTroubleshootIamPolicyResponse\u003e, IDeepCloneable\u003cTroubleshootIamPolicyResponse\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Policy Troubleshooter v1 API class TroubleshootIamPolicyResponse.\n\nResponse for\n\\[TroubleshootIamPolicy\\]\\[google.cloud.policytroubleshooter.v1.IamChecker.TroubleshootIamPolicy\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e TroubleshootIamPolicyResponse \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[TroubleshootIamPolicyResponse](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/latest/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[TroubleshootIamPolicyResponse](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/latest/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[TroubleshootIamPolicyResponse](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/latest/Google.Cloud.PolicyTroubleshooter.V1.TroubleshootIamPolicyResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.PolicyTroubleshooter.V1](/dotnet/docs/reference/Google.Cloud.PolicyTroubleshooter.V1/latest/Google.Cloud.PolicyTroubleshooter.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.PolicyTroubleshooter.V1.dll\n\nConstructors\n------------\n\n### TroubleshootIamPolicyResponse()\n\n public TroubleshootIamPolicyResponse()\n\n### TroubleshootIamPolicyResponse(TroubleshootIamPolicyResponse)\n\n public TroubleshootIamPolicyResponse(TroubleshootIamPolicyResponse other)\n\nProperties\n----------\n\n### Access\n\n public AccessState Access { get; set; }\n\nIndicates whether the principal has the specified permission for the\nspecified resource, based on evaluating all of the applicable IAM policies.\n\n### Errors\n\n public RepeatedField\u003cStatus\u003e Errors { get; }\n\nThe general errors contained in the troubleshooting response.\n\n### ExplainedPolicies\n\n public RepeatedField\u003cExplainedPolicy\u003e ExplainedPolicies { get; }\n\nList of IAM policies that were evaluated to check the principal's\npermissions, with annotations to indicate how each policy contributed to\nthe final result.\n\nThe list of policies can include the policy for the resource itself. It can\nalso include policies that are inherited from higher levels of the resource\nhierarchy, including the organization, the folder, and the project.\n\nTo learn more about the resource hierarchy, see\n\u003chttps://cloud.google.com/iam/help/resource-hierarchy\u003e."]]