This API documentation is for Ballerina 1.2.0. View API documentation for the latest release.

Functions - oauth2

getScopes

Reads the scope(s) for the user with the given username.

getScopes

(string scopes)

returns string[]

Reads the scope(s) for the user with the given username.

Parameters

  • scopes string
  • Set of scopes seperated with a space

  • Return Type

    (string[])
  • Array of groups for the user denoted by the username