// Creating a service account for Artie to subscribe to change streamdb.createUser({user: "artie", pwd: "changeme", roles: ["read"]});// Grants access to DocumentDB change streamsuse admin;db.grantRolesToUser("artie", [ { role: "readAnyDatabase", db: "admin" }]);// Depending on the permission granularity you want, // you can use the following commands to grant permissions to the service account.// Enable change streams for all collections in database "changeme"db.adminCommand({ modifyChangeStreams: 1, database: "changeme", collection: "", enable: true});// Enable change streams for all collections in all databasesdb.adminCommand({ modifyChangeStreams: 1, database: "", collection: "", enable: true});// Optional - Enable change streams for the collection "foo" in database "changeme"db.adminCommand({ modifyChangeStreams: 1, database: "changeme", collection: "foo", enable: true});