usePermissions will return a list from the server for you formatted for use in your UI.
const permissions = usePermissions();
Check permissions.loading while the request runs. When the response arrives, permissions.data.list contains { value, label } options built from the permission names returned by /api/user/permissions.