我可以通过以下API获得所有角色。
https://rest.netsuite.com/rest/roles
响应为:
[
{
"account": {
"internalId": "XXXACCID",
"name": "ACC_NAME",
"type": "PRODUCTION"
},
"role": {
"internalId": 3,
"name": "Administrator"
},
"dataCenterURLs": {
"webservicesDomain": "https://webservices.netsuite.com",
"restDomain": "https://rest.netsuite.com",
"systemDomain": "https://system.netsuite.com"
}
},
{
"account": {
"internalId": "XXXACCID",
"name": "ACC_NAME",
"type": "PRODUCTION"
},
"role": {
"internalId": 1002,
"name": "Custom Accountant 4"
},
"dataCenterURLs": {
"webservicesDomain": "https://webservices.netsuite.com",
"restDomain": "https://rest.netsuite.com",
"systemDomain": "https://system.netsuite.com"
}
}
]
我已为管理员启用2FA。我可以通过将otp与标头一起传递来获取令牌。
在此之前,我想知道哪个角色启用了2FA。
如何获得? 要么 是否有其他可用的api可以使用REST api使当前用户启用所有角色,包括启用2FA?