Class UserOrganization
- Namespace
- Cloudflare.NET.User.Models
- Assembly
- Cloudflare.NET.dll
Organization membership information nested within a User.
Note: The Organization APIs are deprecated in favor of Accounts. This type is retained for backward compatibility with existing user profiles.
public record UserOrganization : IEquatable<UserOrganization>
- Inheritance
-
UserOrganization
- Implements
- Inherited Members
Remarks
Organizations are a legacy concept in Cloudflare. New implementations should use Accounts and account memberships instead.
Constructors
UserOrganization(string, string, string?, IReadOnlyList<string>?, IReadOnlyList<string>?)
Organization membership information nested within a User.
Note: The Organization APIs are deprecated in favor of Accounts. This type is retained for backward compatibility with existing user profiles.
public UserOrganization(string Id, string Name, string? Status = null, IReadOnlyList<string>? Permissions = null, IReadOnlyList<string>? Roles = null)
Parameters
IdstringOrganization identifier.
NamestringOrganization name.
StatusstringUser's status in the organization (e.g., "active", "pending").
PermissionsIReadOnlyList<string>User's permissions in the organization.
RolesIReadOnlyList<string>User's roles in the organization.
Remarks
Organizations are a legacy concept in Cloudflare. New implementations should use Accounts and account memberships instead.
Properties
Id
Organization identifier.
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
Name
Organization name.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Permissions
User's permissions in the organization.
[JsonPropertyName("permissions")]
public IReadOnlyList<string>? Permissions { get; init; }
Property Value
Roles
User's roles in the organization.
[JsonPropertyName("roles")]
public IReadOnlyList<string>? Roles { get; init; }
Property Value
Status
User's status in the organization (e.g., "active", "pending").
[JsonPropertyName("status")]
public string? Status { get; init; }