NYYU Logo
APIUser

Add Disallowed Country

Admin operation to add geographic restrictions for users

Add Disallowed Country

ADMIN

Administrative operation to add country-based restrictions and block access from specific geographic locations.

Mutation

GraphQL Schema

addDisallowedCountry(countryCode: String!): String

Parameters

countryCodeString!
Required

ISO 3166-1 alpha-2 country code to restrict (e.g., "US", "CN", "RU")

Example Usage

mutation {
  addDisallowedCountry(countryCode: "CN")
}

Security Considerations

Admin Access Only

This operation requires ROLE_ADMIN privileges.

Compliance

Ensure geographic restrictions comply with legal requirements and business policies.