<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaSetup",
  "identifier" : "/documentation/MediaSetup/MSServiceAccount",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Media Setup"
    ],
    "preciseIdentifier" : "c:objc(cs)MSServiceAccount"
  },
  "title" : "MSServiceAccount"
}
-->

# MSServiceAccount

Account details for accessing a streaming media service.

```
class MSServiceAccount
```

## Topics

### Presenting Account Information to the User

[`init(serviceName: String, accountName: String)`](/documentation/MediaSetup/MSServiceAccount/init(serviceName:accountName:))

Creates a new account.

[`var serviceName: String`](/documentation/MediaSetup/MSServiceAccount/serviceName)

The localized name of the streaming media service.

[`var accountName: String`](/documentation/MediaSetup/MSServiceAccount/accountName)

The user’s display name, email address, or other identifier in a streaming media service.

### Providing Parameters for an OAuth Request

[`var authorizationTokenURL: URL?`](/documentation/MediaSetup/MSServiceAccount/authorizationTokenURL)

A URL the system can access to request an OAuth token for the user’s HomePod speakers.

[`var authorizationScope: String?`](/documentation/MediaSetup/MSServiceAccount/authorizationScope)

A list of permissions for the token request.

[`var clientID: String?`](/documentation/MediaSetup/MSServiceAccount/clientID)

A user identifier for the token request.

[`var clientSecret: String?`](/documentation/MediaSetup/MSServiceAccount/clientSecret)

A string that authenticates the user’s setup request.

[`var configurationURL: URL?`](/documentation/MediaSetup/MSServiceAccount/configurationURL)

The path to access the configuration endpoint of your streaming media service for HomePod.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)