You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: app/views/docs/authentication-management.phtml
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ const users = new sdk.Users(client);
223
223
224
224
const promise = users.updateLabels(
225
225
'[USER_ID]',
226
-
[ Role.label('subscriber') ]
226
+
[ 'subscriber' ]
227
227
);
228
228
229
229
promise.then(function (response) {
@@ -252,7 +252,7 @@ $users = new Users($client);
252
252
253
253
$result = $users->updateLabels(
254
254
'[USER_ID]',
255
-
[ Role.label('subscriber') ]
255
+
[ 'subscriber' ]
256
256
);</code></pre>
257
257
</div>
258
258
</li>
@@ -275,7 +275,7 @@ users = Users(client)
275
275
276
276
result = users.update_labels(
277
277
'[USER_ID]',
278
-
[ Role.label('subscriber') ]
278
+
[ 'subscriber' ]
279
279
)</code></pre>
280
280
</div>
281
281
</li>
@@ -295,7 +295,7 @@ users = Users.new(client)
295
295
296
296
response = users.update_labels(
297
297
user_id: '[USER_ID]',
298
-
labels: [ Role.label('subscriber') ]
298
+
labels: [ 'subscriber' ]
299
299
)</code></pre>
300
300
</div>
301
301
</li>
@@ -313,7 +313,7 @@ let users = new sdk.Users(client);
313
313
314
314
const promise = users.updateLabels(
315
315
'[USER_ID]',
316
-
[ Role.label('subscriber') ]
316
+
[ 'subscriber' ]
317
317
);
318
318
319
319
promise.then(function (response) {
@@ -337,7 +337,7 @@ final users = Users(client);
337
337
338
338
final result = await users.updateLabels(
339
339
userId: '[USER_ID]',
340
-
labels: [ Role.label('subscriber') ],
340
+
labels: [ 'subscriber' ],
341
341
);</code></pre>
342
342
</div>
343
343
</li>
@@ -357,7 +357,7 @@ val users = Users(client)
357
357
358
358
val response = users.updateLabels(
359
359
userId = "[USER_ID]",
360
-
labels = [ Role.label('subscriber') ]
360
+
labels = [ 'subscriber' ]
361
361
)</code></pre>
362
362
</div>
363
363
</li>
@@ -375,7 +375,7 @@ let users = Users(client)
375
375
376
376
let response = try await users.updateLabels(
377
377
userId: "[USER_ID]",
378
-
labels: [ Role.label('subscriber') ]
378
+
labels: [ 'subscriber' ]
379
379
)</code></pre>
380
380
</div>
381
381
</li>
@@ -393,7 +393,7 @@ var users = new Users(client);
393
393
394
394
var response = await users.UpdateLabels(
395
395
userId: "[USER_ID]",
396
-
labels: [ Role.Label('subscriber') ]
396
+
labels: [ 'subscriber' ]
397
397
);</pre>
398
398
</div>
399
399
</li>
@@ -417,4 +417,4 @@ var response = await users.UpdateLabels(
417
417
For example, in a todo app, a user can <a href="/docs/client/teams#teamsCreate">create a team</a> for one of their todo lists and <a href="/docs/client/teams#teamsCreateMembership">invite another user</a> to the team to grant the other user access.
418
418
The invited user can <a href="/docs/client/teams#teamsUpdateMembershipStatus">accept the invitation</a> to gain access.
419
419
If the user's ever removed from the team, they'll lose access again.
Copy file name to clipboardExpand all lines: app/views/docs/permissions.phtml
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -98,6 +98,10 @@
98
98
<td>Role.member([MEMBERSHIP_ID])</td>
99
99
<td>Grants access to a specific member of a team. When the member is removed from the team, they will no longer have access.</td>
100
100
</tr>
101
+
<tr>
102
+
<td>Role.label([LABEL_ID])</td>
103
+
<td>Grants access to all accounts with a specific label ID. Once the label is removed from the user, they will no longer have access. <a href="/docs/authentication-management#labels">Learn more about labels</a>.</td>
0 commit comments