Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
W&B 조직에서 Users 목록을 내보내려면 관리자가 다음 코드를 사용해 SCIM API를 호출합니다:
import base64
import requests
def encode_base64(username, key):
auth_string = f'{username}:{key}'
return base64.b64encode(auth_string.encode('utf-8')).decode('utf-8')
username = '' # 조직 관리자 사용자 이름
key = '' # API 키
scim_base_url = 'https://api.wandb.ai/scim/v2'
users_endpoint = f'{scim_base_url}/Users'
headers = {
'Authorization': f'Basic {encode_base64(username, key)}',
'Content-Type': 'application/scim+json'
}
response = requests.get(users_endpoint, headers=headers)
users = []
for user in response.json()['Resources']:
users.append([user['userName'], user['emails']['Value']])
필요에 따라 출력이 저장되도록 스크립트를 수정하세요.
관리자
사용자 관리